| /freebsd-12.1/contrib/serf/buckets/ |
| H A D | ssl_buckets.c | 149 serf_ssl_stream_t encrypt; member 276 ctx->encrypt.exhausted_reset = 1; in bio_bucket_read() 318 ctx->encrypt.exhausted_reset = 1; in bio_bucket_write() 908 ctx->encrypt.exhausted_reset = 0; in ssl_encrypt() 916 if (!ctx->encrypt.status) { in ssl_encrypt() 1012 status = ctx->encrypt.status; in ssl_encrypt() 1034 ctx->encrypt.status, *len); in ssl_encrypt() 1043 ctx->encrypt.exhausted = ctx->encrypt.status; in ssl_encrypt() 1441 ssl_ctx->encrypt.stream = NULL; in ssl_init_context() 1442 ssl_ctx->encrypt.stream_next = NULL; in ssl_init_context() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/modes/ |
| H A D | ocb128.c | 138 ret = CRYPTO_ocb128_init(octx, keyenc, keydec, encrypt, decrypt, in CRYPTO_ocb128_new() 152 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_init() argument 168 ctx->encrypt = encrypt; in CRYPTO_ocb128_init() 175 ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc); in CRYPTO_ocb128_init() 244 ctx->encrypt(tmp, ktop, ctx->keyenc); in CRYPTO_ocb128_setiv() 294 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 316 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 379 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_encrypt() 400 ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc); in CRYPTO_ocb128_encrypt() 492 ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc); in CRYPTO_ocb128_decrypt() [all …]
|
| /freebsd-12.1/sys/dev/pms/RefTisa/sallsdk/spc/ |
| H A D | sasata.c | 343 if(agSATAReq->encrypt.enableEncryptionPerLA) in saSATAStart() 398 if (agSATAReq->encrypt.keyTagCheck == agTRUE) in saSATAStart() 403 if( agSATAReq->encrypt.cipherMode == agsaEncryptCipherModeXTS ) in saSATAStart() 408 encryptFlags |= agSATAReq->encrypt.dekInfo.dekTable << SHIFT2; in saSATAStart() 410 encryptFlags |= (agSATAReq->encrypt.dekInfo.dekIndex & 0xFFFFFF) << SHIFT8; in saSATAStart() 415 encryptFlags = agSATAReq->encrypt.sectorSizeIndex; in saSATAStart() 419 if(agSATAReq->encrypt.enableEncryptionPerLA) in saSATAStart() 424 encryptFlags |= (agSATAReq->encrypt.kekIndex) << SHIFT5; in saSATAStart() 463 if(agSATAReq->encrypt.enableEncryptionPerLA) in saSATAStart() 467 agSATAReq->encrypt.EncryptionPerLAAddrLo); in saSATAStart() [all …]
|
| H A D | sassp.c | 1113 pIRequest->encrypt.dekInfo.dekTable, in saSSPStart() 1114 pIRequest->encrypt.dekInfo.dekIndex)); in saSSPStart() 1117 pIRequest->encrypt.kekIndex, in saSSPStart() 1118 pIRequest->encrypt.sectorSizeIndex, in saSSPStart() 1119 pIRequest->encrypt.cipherMode)); in saSSPStart() 1122 pIRequest->encrypt.keyTag_W0, in saSSPStart() 1123 pIRequest->encrypt.keyTag_W1)); in saSSPStart() 1125 pIRequest->encrypt.tweakVal_W0, in saSSPStart() 1126 pIRequest->encrypt.tweakVal_W1)); in saSSPStart() 1128 pIRequest->encrypt.tweakVal_W2, in saSSPStart() [all …]
|
| /freebsd-12.1/usr.sbin/bluetooth/hccontrol/ |
| H A D | util.c | 78 hci_encrypt2str(int encrypt, int brief) in hci_encrypt2str() argument 93 return (encrypt >= SIZE(t1)? "?" : t1[encrypt]); in hci_encrypt2str() 95 return (encrypt >= SIZE(t)? "?" : t[encrypt]); in hci_encrypt2str()
|
| /freebsd-12.1/crypto/openssl/crypto/evp/ |
| H A D | evp_enc.c | 64 enc = ctx->encrypt; in EVP_CipherInit_ex() 68 ctx->encrypt = enc; in EVP_CipherInit_ex() 91 ctx->encrypt = enc; in EVP_CipherInit_ex() 212 if (ctx->encrypt) in EVP_CipherUpdate() 220 if (ctx->encrypt) in EVP_CipherFinal_ex() 228 if (ctx->encrypt) in EVP_CipherFinal() 380 if (!ctx->encrypt) { in EVP_EncryptUpdate() 401 if (!ctx->encrypt) { in EVP_EncryptFinal_ex() 450 if (ctx->encrypt) { in EVP_DecryptUpdate() 531 if (ctx->encrypt) { in EVP_DecryptFinal_ex()
|
| H A D | e_chacha20_poly1305.c | 240 if (ctx->encrypt) in chacha20_poly1305_tls_cipher() 264 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 298 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 344 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_tls_cipher() 349 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 412 if (ctx->encrypt) { /* plaintext */ in chacha20_poly1305_cipher() 470 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_cipher() 475 if (ctx->encrypt) { in chacha20_poly1305_cipher() 484 else if (!ctx->encrypt) { in chacha20_poly1305_cipher() 568 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE || !ctx->encrypt) in chacha20_poly1305_ctrl() [all …]
|
| H A D | pmeth_fn.c | 139 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt_init() 157 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt() 167 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt() 225 || !(ctx->pmeth->derive || ctx->pmeth->encrypt || ctx->pmeth->decrypt) in EVP_PKEY_derive_set_peer()
|
| /freebsd-12.1/tests/sys/opencrypto/ |
| H A D | cryptotest.py | 98 curfun = Crypto.encrypt 135 rct, rtag = c.encrypt(pt, iv, aad) 172 curfun = Crypto.encrypt 200 curfun = Crypto.encrypt 253 r, tag = Crypto.encrypt(c, payload, 332 curfun = Crypto.encrypt 403 _, r = c.encrypt(msg, iv="") 460 _, r = c.encrypt(msg, iv="")
|
| H A D | cryptodev.py | 300 def encrypt(self, data, iv, aad=None): member in Crypto 527 enc = c.encrypt(pt, iv) 548 enc = c.encrypt(pt, iv) 568 enc = c.encrypt(pt, iv) 594 enc, enctag = c.encrypt(pt, iv, aad=aad) 630 enc, enctag = c.encrypt(pt, iv, aad=aad) 647 enc = c.encrypt(data, iv) 655 enc = c.encrypt(data, iv)
|
| /freebsd-12.1/contrib/bearssl/inc/ |
| H A D | bearssl_aead.h | 252 void (*run)(const br_aead_class **cc, int encrypt, 452 void br_gcm_run(br_gcm_context *ctx, int encrypt, void *data, size_t len); 765 void br_eax_run(br_eax_context *ctx, int encrypt, void *data, size_t len); 1012 void br_ccm_run(br_ccm_context *ctx, int encrypt, void *data, size_t len);
|
| /freebsd-12.1/sys/mips/nlm/hal/ |
| H A D | nlmsaelib.h | 247 unsigned int hashout_l3alloc, unsigned int encrypt, unsigned int ivlen, in nlm_crypto_form_pkt_desc0() argument 253 left_shift64(encrypt, 59, 1) | in nlm_crypto_form_pkt_desc0() 509 struct nlm_crypto_pkt_param *param, unsigned int encrypt, in nlm_crypto_fill_cipher_auth_pkt_param() argument 514 param->desc0 = nlm_crypto_form_pkt_desc0(0, hash_source, 1, encrypt, in nlm_crypto_fill_cipher_auth_pkt_param() 536 struct nlm_crypto_pkt_param *param, unsigned int encrypt, in nlm_crypto_fill_cipher_pkt_param() argument 540 param->desc0 = nlm_crypto_form_pkt_desc0(0, 0, 0, encrypt, ivlen, 0ULL); in nlm_crypto_fill_cipher_pkt_param()
|
| /freebsd-12.1/contrib/bearssl/src/symcipher/ |
| H A D | poly1305_i15.c | 131 void *tag, br_chacha20_run ichacha, int encrypt) in br_poly1305_i15_run() argument 147 if (encrypt) { in br_poly1305_i15_run() 218 if (!encrypt) { in br_poly1305_i15_run()
|
| /freebsd-12.1/contrib/bearssl/src/aead/ |
| H A D | gcm.c | 164 br_gcm_run(br_gcm_context *ctx, int encrypt, void *data, size_t len) in br_gcm_run() argument 186 ctx->buf[ptr + u] = encrypt ? y : x; in br_gcm_run() 202 if (!encrypt) { in br_gcm_run() 206 if (encrypt) { in br_gcm_run() 227 ctx->buf[u] = encrypt ? y : x; in br_gcm_run()
|
| H A D | ccm.c | 200 br_ccm_run(br_ccm_context *ctx, int encrypt, void *data, size_t len) in br_ccm_run() argument 221 if (encrypt) { in br_ccm_run() 263 if (encrypt) { in br_ccm_run() 267 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 282 if (encrypt) { in br_ccm_run()
|
| H A D | eax.c | 336 br_eax_run(br_eax_context *ctx, int encrypt, void *data, size_t len) in br_eax_run() argument 366 if (encrypt) { in br_eax_run() 411 if (encrypt) { in br_eax_run() 412 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() 426 if (encrypt) { in br_eax_run()
|
| /freebsd-12.1/crypto/openssl/crypto/rc2/ |
| H A D | rc2_ecb.c | 23 int encrypt) in RC2_ecb_encrypt() argument 31 if (encrypt) in RC2_ecb_encrypt()
|
| /freebsd-12.1/crypto/openssl/crypto/rc5/ |
| H A D | rc5_ecb.c | 15 RC5_32_KEY *ks, int encrypt) in RC5_32_ecb_encrypt() argument 23 if (encrypt) in RC5_32_ecb_encrypt()
|
| /freebsd-12.1/crypto/openssl/crypto/bf/ |
| H A D | bf_ecb.c | 26 const BF_KEY *key, int encrypt) in BF_ecb_encrypt() argument 34 if (encrypt) in BF_ecb_encrypt()
|
| H A D | bf_cfb64.c | 21 unsigned char *ivec, int *num, int encrypt) in BF_cfb64_encrypt() argument 30 if (encrypt) { in BF_cfb64_encrypt()
|
| /freebsd-12.1/sys/crypto/blowfish/ |
| H A D | bf_ecb.c | 72 BF_KEY *key, int encrypt) in BF_ecb_encrypt() argument 78 if (encrypt) in BF_ecb_encrypt()
|
| /freebsd-12.1/crypto/heimdal/appl/telnet/libtelnet/ |
| H A D | Makefile.am | 15 encrypt.c \ 16 encrypt.h \
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | cipher.c | 57 int encrypt; member 252 cc->encrypt = do_encrypt; in cipher_init() 340 len, aadlen, authlen, cc->encrypt); in cipher_crypt() 366 if (!cc->encrypt && in cipher_crypt() 385 return cc->encrypt ? in cipher_crypt() 387 if (cc->encrypt && in cipher_crypt()
|
| H A D | PROTOCOL.chacha20poly1305 | 41 to encrypt the 4 byte packet length field. The second instance, 43 (Authenticated Encryption with Associated Data) that is used to encrypt 49 the MAC. By using an independently-keyed cipher instance to encrypt the 80 To send a packet, first encode the 4 byte length and encrypt it using 88 used to encrypt more than 2^70 bytes under the same {key, nonce}. The
|
| /freebsd-12.1/crypto/openssl/doc/man1/ |
| H A D | cms.pod | 12 [B<-encrypt>] 122 =item B<-encrypt> 217 B<-encrypt> or B<-sign>) this option has no effect. 601 The B<-secretkey> option when used with B<-encrypt>. 605 The use of OAEP or non-RSA keys with B<-encrypt>. 645 openssl cms -encrypt -in in.txt -from [email protected] \ 649 Sign and encrypt mail: 652 | openssl cms -encrypt -out mail.msg \ 694 openssl cms -encrypt -in plain.txt -out mail.msg \ 699 openssl cms -encrypt -in plain.txt -out mail.msg \ [all …]
|