Lines Matching refs:cipher_ctx
177 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()
317 if (!siv128_do_encrypt(ctx->cipher_ctx, out, in, len, &q) in ossl_siv128_decrypt()
373 EVP_CIPHER_CTX_free(ctx->cipher_ctx); in ossl_siv128_cleanup()
374 ctx->cipher_ctx = NULL; in ossl_siv128_cleanup()