Searched refs:cipher_ctx (Results 1 – 6 of 6) sorted by relevance
| /freebsd/crypto/openssl/engines/ |
| H A D | e_devcrypto.c | 107 struct cipher_ctx { struct 209 struct cipher_ctx *cipher_ctx = (struct cipher_ctx *)EVP_CIPHER_CTX_get_cipher_data(ctx); in cipher_init() local 214 if (cipher_ctx->sess.ses != 0 && clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init() 217 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init() 218 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init() 219 cipher_ctx->sess.key = (void *)key; in cipher_init() 220 cipher_ctx->op = enc ? COP_ENCRYPT : COP_DECRYPT; in cipher_init() 221 cipher_ctx->mode = cipher_d->flags & EVP_CIPH_MODE; in cipher_init() 222 cipher_ctx->blocksize = cipher_d->blocksize; in cipher_init() 224 …cipher_ctx->sess.crid = (use_softdrivers == DEVCRYPTO_USE_SOFTWARE) ? CRYPTO_FLAG_SOFTWARE | CRYPT… in cipher_init() [all …]
|
| /freebsd/crypto/openssl/crypto/modes/ |
| H A D | siv128.c | 176 EVP_CIPHER_CTX_free(ctx->cipher_ctx); in ossl_siv128_init() 180 ctx->cipher_ctx = NULL; in ossl_siv128_init() 193 if ((ctx->cipher_ctx = EVP_CIPHER_CTX_new()) == NULL in ossl_siv128_init() 197 || !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL) in ossl_siv128_init() 202 EVP_CIPHER_CTX_free(ctx->cipher_ctx); in ossl_siv128_init() 203 ctx->cipher_ctx = NULL; in ossl_siv128_init() 225 if (dest->cipher_ctx == NULL) { in ossl_siv128_copy_ctx() 226 dest->cipher_ctx = EVP_CIPHER_CTX_new(); in ossl_siv128_copy_ctx() 227 if (dest->cipher_ctx == NULL) in ossl_siv128_copy_ctx() 230 if (!EVP_CIPHER_CTX_copy(dest->cipher_ctx, src->cipher_ctx)) in ossl_siv128_copy_ctx() [all …]
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_wire_pkt.c | 38 hpr->cipher_ctx = EVP_CIPHER_CTX_new(); in ossl_quic_hdr_protector_init() 39 if (hpr->cipher_ctx == NULL) { in ossl_quic_hdr_protector_init() 51 if (!EVP_CipherInit_ex(hpr->cipher_ctx, hpr->cipher, NULL, in ossl_quic_hdr_protector_init() 69 EVP_CIPHER_CTX_free(hpr->cipher_ctx); in ossl_quic_hdr_protector_cleanup() 70 hpr->cipher_ctx = NULL; in ossl_quic_hdr_protector_cleanup() 92 if (!EVP_CipherInit_ex(hpr->cipher_ctx, NULL, NULL, NULL, NULL, 1) in hdr_generate_mask() 93 || !EVP_CipherUpdate(hpr->cipher_ctx, dst, &l, sample, 16)) { in hdr_generate_mask() 106 if (!EVP_CipherInit_ex(hpr->cipher_ctx, NULL, NULL, NULL, sample, 1) in hdr_generate_mask() 107 || !EVP_CipherUpdate(hpr->cipher_ctx, mask, &l, in hdr_generate_mask()
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_siv_hw.c | 72 out->siv.cipher_ctx = NULL; in aes_siv_dupctx()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | quic_wire_pkt.h | 160 EVP_CIPHER_CTX *cipher_ctx; member
|
| /freebsd/crypto/openssl/include/crypto/ |
| H A D | modes.h | 224 EVP_CIPHER_CTX *cipher_ctx; member
|