Lines Matching refs:cipher
33 EVP_CIPHER_CTX *cipher; member
73 ctx->cipher = EVP_CIPHER_CTX_new(); in enc_new()
74 if (ctx->cipher == NULL) { in enc_new()
98 EVP_CIPHER_CTX_free(b->cipher); in enc_free()
136 blocksize = EVP_CIPHER_CTX_block_size(ctx->cipher); in enc_read()
162 i = EVP_CipherFinal_ex(ctx->cipher, in enc_read()
179 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
197 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
266 if (!EVP_CipherUpdate(ctx->cipher, in enc_write()
312 if (!EVP_CipherInit_ex(ctx->cipher, NULL, NULL, NULL, NULL, in enc_ctrl()
313 EVP_CIPHER_CTX_encrypting(ctx->cipher))) in enc_ctrl()
345 ret = EVP_CipherFinal_ex(ctx->cipher, in enc_ctrl()
369 *c_ctx = ctx->cipher; in enc_ctrl()
375 dctx->cipher = EVP_CIPHER_CTX_new(); in enc_ctrl()
376 if (dctx->cipher == NULL) in enc_ctrl()
378 ret = EVP_CIPHER_CTX_copy(dctx->cipher, ctx->cipher); in enc_ctrl()
423 if (!EVP_CipherInit_ex(ctx->cipher, c, NULL, k, i, e)) in BIO_set_cipher()