Home
last modified time | relevance | path

Searched refs:cipher_ctx (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Deng_devcrypto.c59 struct cipher_ctx { struct
152 struct cipher_ctx *cipher_ctx = in cipher_init() local
153 (struct cipher_ctx *)EVP_CIPHER_CTX_get_cipher_data(ctx); in cipher_init()
158 if (cipher_ctx->sess.ses != 0 && in cipher_init()
159 clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init()
162 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init()
163 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init()
164 cipher_ctx->sess.key = (void *)key; in cipher_init()
165 cipher_ctx->op = enc ? COP_ENCRYPT : COP_DECRYPT; in cipher_init()
166 cipher_ctx->mode = cipher_d->flags & EVP_CIPH_MODE; in cipher_init()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/engines/
H A De_devcrypto.c105 struct cipher_ctx { struct
207 struct cipher_ctx *cipher_ctx = in cipher_init() local
208 (struct cipher_ctx *)EVP_CIPHER_CTX_get_cipher_data(ctx); in cipher_init()
214 if (cipher_ctx->sess.ses != 0 && in cipher_init()
215 clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init()
218 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init()
219 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init()
220 cipher_ctx->sess.key = (void *)key; in cipher_init()
221 cipher_ctx->op = enc ? COP_ENCRYPT : COP_DECRYPT; in cipher_init()
222 cipher_ctx->mode = cipher_d->flags & EVP_CIPH_MODE; in cipher_init()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/modes/
H A Dsiv128.c177 EVP_CIPHER_CTX_free(ctx->cipher_ctx); in ossl_siv128_init()
181 ctx->cipher_ctx = NULL; in ossl_siv128_init()
194 if ((ctx->cipher_ctx = EVP_CIPHER_CTX_new()) == NULL in ossl_siv128_init()
199 || !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL) in ossl_siv128_init()
204 EVP_CIPHER_CTX_free(ctx->cipher_ctx); in ossl_siv128_init()
224 if (dest->cipher_ctx == NULL) { in ossl_siv128_copy_ctx()
225 dest->cipher_ctx = EVP_CIPHER_CTX_new(); in ossl_siv128_copy_ctx()
226 if (dest->cipher_ctx == NULL) in ossl_siv128_copy_ctx()
229 if (!EVP_CIPHER_CTX_copy(dest->cipher_ctx, src->cipher_ctx)) in ossl_siv128_copy_ctx()
291 if (!siv128_do_encrypt(ctx->cipher_ctx, out, in, len, &q)) in ossl_siv128_encrypt()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_aes_siv_hw.c65 out->siv.cipher_ctx = NULL; in aes_siv_dupctx()
/netbsd-src/crypto/external/bsd/openssl/dist/include/crypto/
H A Dmodes.h216 EVP_CIPHER_CTX *cipher_ctx; member