Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 215) sorted by relevance

123456789

/freebsd/crypto/openssl/test/ssl-tests/
H A D19-mac-then-encrypt.cnf5 test-0 = 0-disable-encrypt-then-mac-server-sha
6 test-1 = 1-disable-encrypt-then-mac-client-sha
7 test-2 = 2-disable-encrypt-then-mac-both-sha
8 test-3 = 3-disable-encrypt-then-mac-server-sha2
9 test-4 = 4-disable-encrypt-then-mac-client-sha2
10 test-5 = 5-disable-encrypt-then-mac-both-sha2
11 test-6 = 6-disable-encrypt-then-mac-server-sha-tls1
12 test-7 = 7-disable-encrypt-then-mac-client-sha-tls1
13 test-8 = 8-disable-encrypt-then-mac-both-sha-tls1
16 [0-disable-encrypt-then-mac-server-sha]
[all …]
H A D19-mac-then-encrypt.cnf.in20 name => "disable-encrypt-then-mac-server-sha",
33 name => "disable-encrypt-then-mac-client-sha",
46 name => "disable-encrypt-then-mac-both-sha",
63 name => "disable-encrypt-then-mac-server-sha2",
76 name => "disable-encrypt-then-mac-client-sha2",
89 name => "disable-encrypt-then-mac-both-sha2",
106 name => "disable-encrypt-then-mac-server-sha-tls1",
121 name => "disable-encrypt-then-mac-client-sha-tls1",
136 name => "disable-encrypt-then-mac-both-sha-tls1",
/freebsd/contrib/libfido2/src/
H A Daes256.c12 fido_blob_t *out, int encrypt) in aes256_cbc() argument
38 if (EVP_CipherInit(ctx, cipher, key->ptr, iv, encrypt) == 0 || in aes256_cbc()
56 fido_blob_t *out, int encrypt) in aes256_cbc_proto1() argument
62 return aes256_cbc(key, iv, in, out, encrypt); in aes256_cbc_proto1()
67 fido_blob_t *out, int encrypt) in aes256_cbc_fips() argument
83 if (encrypt) { in aes256_cbc_fips()
96 if (aes256_cbc(&key, iv, &cin, &cout, encrypt) < 0) in aes256_cbc_fips()
98 if (encrypt) { in aes256_cbc_fips()
117 int encrypt) in aes256_gcm() argument
136 out->len = encrypt ? in->len + 16 : in->len - 16; in aes256_gcm()
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl_aes.c88 bool encrypt; in ossl_aes_cbc() local
91 encrypt = CRYPTO_OP_IS_ENCRYPT(crp->crp_op); in ossl_aes_cbc()
99 if (encrypt) in ossl_aes_cbc()
108 if (encrypt) in ossl_aes_cbc()
146 AES_CBC_ENCRYPT(in, out, seglen, &key, iv, encrypt); in ossl_aes_cbc()
183 bool encrypt; in ossl_aes_gcm() local
185 encrypt = CRYPTO_OP_IS_ENCRYPT(crp->crp_op); in ossl_aes_gcm()
188 if (encrypt) in ossl_aes_gcm()
198 } else if (encrypt) { in ossl_aes_gcm()
237 if (encrypt) { in ossl_aes_gcm()
[all …]
H A Dossl_aarch64.h24 size_t length, const void *key, unsigned char *iv, int encrypt) in AES_CBC_ENCRYPT() argument
27 aes_v8_cbc_encrypt(in, out, length, key, iv, encrypt); in AES_CBC_ENCRYPT()
29 vpaes_cbc_encrypt(in, out, length, key, iv, encrypt); in AES_CBC_ENCRYPT()
H A Dossl_ppc.h38 size_t length, const void *key, unsigned char *iv, int encrypt) in AES_CBC_ENCRYPT() argument
41 aes_p8_cbc_encrypt(in, out, length, key, iv, encrypt); in AES_CBC_ENCRYPT()
43 vpaes_cbc_encrypt(in, out, length, key, iv, encrypt); in AES_CBC_ENCRYPT()
/freebsd/crypto/openssl/crypto/modes/
H A Docb128.c131 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_new() argument
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()
[all …]
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dsasata.c342 if(agSATAReq->encrypt.enableEncryptionPerLA) in saSATAStart()
397 if (agSATAReq->encrypt.keyTagCheck == agTRUE) in saSATAStart()
402 if( agSATAReq->encrypt.cipherMode == agsaEncryptCipherModeXTS ) in saSATAStart()
407 encryptFlags |= agSATAReq->encrypt.dekInfo.dekTable << SHIFT2; in saSATAStart()
409 encryptFlags |= (agSATAReq->encrypt.dekInfo.dekIndex & 0xFFFFFF) << SHIFT8; in saSATAStart()
414 encryptFlags = agSATAReq->encrypt.sectorSizeIndex; in saSATAStart()
418 if(agSATAReq->encrypt.enableEncryptionPerLA) in saSATAStart()
420 encryptFlags |= (agSATAReq->encrypt.EncryptionPerLRegion0SecCount << SHIFT16); in saSATAStart()
423 encryptFlags |= (agSATAReq->encrypt.kekIndex) << SHIFT5; in saSATAStart()
427 …oot, payload, OSSA_OFFSET_OF(agsaSATAEncryptStartCmd_t,keyTagLo ), agSATAReq->encrypt.keyTag_W0 ); in saSATAStart()
[all …]
H A Dsassp.c934 if( pIRequest->encrypt.enableEncryptionPerLA && pIRequest->dif.enableDIFPerLA) in saSSPStart()
938 pIRequest->encrypt.EncryptionPerLAAddrLo ); in saSSPStart()
943 …SA_ASSERT(pIRequest->encrypt.EncryptionPerLAAddrHi == pIRequest->dif.DIFPerLAAddrHi, "EPL DPL hi r… in saSSPStart()
945 if( pIRequest->encrypt.EncryptionPerLAAddrHi != pIRequest->dif.DIFPerLAAddrHi ) in saSSPStart()
956 pIRequest->encrypt.EncryptionPerLAAddrHi ); in saSSPStart()
958 else if( pIRequest->encrypt.enableEncryptionPerLA) in saSSPStart()
962 pIRequest->encrypt.EncryptionPerLAAddrLo ); in saSSPStart()
968 pIRequest->encrypt.EncryptionPerLAAddrHi ); in saSSPStart()
1112 pIRequest->encrypt.dekInfo.dekTable, in saSSPStart()
1113 pIRequest->encrypt.dekInfo.dekIndex)); in saSSPStart()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c397 zio_do_crypt_uio_opencrypto(boolean_t encrypt, freebsd_crypt_session_t *sess, in zio_do_crypt_uio_opencrypto() argument
407 int ret = freebsd_crypt_uio(encrypt, sess, ci, uio, key, ivbuf, in zio_do_crypt_uio_opencrypto()
412 __FUNCTION__, __LINE__, encrypt ? "EIO" : "ECKSUM"); in zio_do_crypt_uio_opencrypto()
414 ret = SET_ERROR(encrypt ? EIO : ECKSUM); in zio_do_crypt_uio_opencrypto()
1243 zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf, in zio_crypt_init_uios_zil() argument
1258 if (encrypt) { in zio_crypt_init_uios_zil()
1413 zio_crypt_init_uios_dnode(boolean_t encrypt, uint64_t version, in zio_crypt_init_uios_dnode() argument
1426 if (encrypt) { in zio_crypt_init_uios_dnode()
1560 zio_crypt_init_uios_normal(boolean_t encrypt, uint8_t *plainbuf, in zio_crypt_init_uios_normal() argument
1577 if (encrypt) { in zio_crypt_init_uios_normal()
[all …]
/freebsd/crypto/openssl/doc/life-cycles/
H A Dpkey.dot10 encrypt [fontcolor="#63AAC0", color="#63AAC0"]
29 newed -> encrypt [label="EVP_PKEY_encrypt_init", fontcolor="#63AAC0", color="#63AAC0"];
30 encrypt -> encrypt [label="EVP_PKEY_encrypt", fontcolor="#63AAC0", color="#63AAC0"];
/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c242 if (ctx->encrypt) in chacha20_poly1305_tls_cipher()
266 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher()
300 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher()
343 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_tls_cipher()
348 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher()
411 if (ctx->encrypt) { /* plaintext */ in chacha20_poly1305_cipher()
466 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_cipher()
471 if (ctx->encrypt) { in chacha20_poly1305_cipher()
480 else if (!ctx->encrypt) { in chacha20_poly1305_cipher()
564 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE || !ctx->encrypt) in chacha20_poly1305_ctrl()
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dutil.c77 hci_encrypt2str(int encrypt, int brief) in hci_encrypt2str() argument
92 return (encrypt >= SIZE(t1)? "?" : t1[encrypt]); in hci_encrypt2str()
94 return (encrypt >= SIZE(t)? "?" : t[encrypt]); in hci_encrypt2str()
/freebsd/crypto/openssl/doc/man7/
H A Dlife_cycle-pkey.pod45 =item encrypt
47 This state represents the PKEY when it is ready to encrypt some plaintext.
113 … EVP_PKEY_encapsulate | | | | | | EVP_PKEY_encrypt | encrypt |
149 …start newed digest verify verify encrypt decrypt derive …
165encrypt encrypt encrypt encrypt encrypt encrypt encrypt
166 EVP_PKEY_encrypt encrypt
186 …EVP_PKEY_CTX_get_params newed digest verify verify encrypt
188 …EVP_PKEY_CTX_set_params newed digest verify verify encrypt
190 …EVP_PKEY_CTX_gettable_params newed digest verify verify encrypt
192 …EVP_PKEY_CTX_settable_params newed digest verify verify encrypt
[all …]
/freebsd/contrib/bearssl/inc/
H A Dbearssl_aead.h252 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/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c392 zio_do_crypt_uio(boolean_t encrypt, uint64_t crypt, crypto_key_t *key, in zio_do_crypt_uio() argument
422 if (encrypt) { in zio_do_crypt_uio()
466 if (encrypt) { in zio_do_crypt_uio()
1402 zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf, in zio_crypt_init_uios_zil() argument
1418 if (encrypt) { in zio_crypt_init_uios_zil()
1578 if (encrypt) { in zio_crypt_init_uios_zil()
1614 zio_crypt_init_uios_dnode(boolean_t encrypt, uint64_t version, in zio_crypt_init_uios_dnode() argument
1628 if (encrypt) { in zio_crypt_init_uios_dnode()
1766 if (encrypt) { in zio_crypt_init_uios_dnode()
1799 zio_crypt_init_uios_normal(boolean_t encrypt, uint8_t *plainbuf, in zio_crypt_init_uios_normal() argument
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Dpoly1305_i15.c131 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/crypto/openssl/test/
H A Digetest.c43 const int encrypt; member
88 const int encrypt; member
160 if (v->encrypt == AES_ENCRYPT) in test_ige_vectors()
165 AES_ige_encrypt(v->in, buf, v->length, &key, iv, v->encrypt); in test_ige_vectors()
178 AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt); in test_ige_vectors()
201 if (v->encrypt == AES_ENCRYPT) { in test_bi_ige_vectors()
210 v->encrypt); in test_bi_ige_vectors()
/freebsd/contrib/bearssl/src/aead/
H A Dgcm.c164 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 Dccm.c200 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()
/freebsd/crypto/openssl/crypto/rc2/
H A Drc2_ecb.c29 int encrypt) in RC2_ecb_encrypt() argument
37 if (encrypt) in RC2_ecb_encrypt()
/freebsd/crypto/openssl/crypto/rc5/
H A Drc5_ecb.c21 RC5_32_KEY *ks, int encrypt) in RC5_32_ecb_encrypt() argument
29 if (encrypt) in RC5_32_ecb_encrypt()
/freebsd/crypto/openssl/crypto/bf/
H A Dbf_ecb.c32 const BF_KEY *key, int encrypt) in BF_ecb_encrypt() argument
40 if (encrypt) in BF_ecb_encrypt()
/freebsd/crypto/heimdal/appl/telnet/libtelnet/
H A DMakefile.am15 encrypt.c \
16 encrypt.h \
/freebsd/crypto/openssh/
H A Dcipher.c60 int encrypt; member
262 cc->encrypt = do_encrypt; in cipher_init()
350 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
376 if (!cc->encrypt && in cipher_crypt()
395 return cc->encrypt ? in cipher_crypt()
397 if (cc->encrypt && in cipher_crypt()

123456789