Lines Matching refs:encrypt
268 aesni_cbc_encrypt(in,out,len,ctx->cipher_data,ctx->iv,ctx->encrypt); in aesni_cbc_cipher()
280 aesni_ecb_encrypt(in,out,len,ctx->cipher_data,ctx->encrypt); in aesni_ecb_cipher()
580 (*dat->stream.cbc)(in,out,len,&dat->ks,ctx->iv,ctx->encrypt); in aes_cbc_cipher()
581 else if (ctx->encrypt) in aes_cbc_cipher()
620 ctx->iv,&ctx->num,ctx->encrypt,dat->block); in aes_cfb_cipher()
630 ctx->iv,&ctx->num,ctx->encrypt,dat->block); in aes_cfb8_cipher()
641 ctx->iv,&ctx->num,ctx->encrypt,dat->block); in aes_cfb1_cipher()
647 ctx->iv,&ctx->num,ctx->encrypt,dat->block); in aes_cfb1_cipher()
652 ctx->iv,&ctx->num,ctx->encrypt,dat->block); in aes_cfb1_cipher()
736 if (arg <= 0 || arg > 16 || c->encrypt) in aes_gcm_ctrl()
743 if (arg <= 0 || arg > 16 || !c->encrypt || gctx->taglen < 0) in aes_gcm_ctrl()
763 if (c->encrypt && in aes_gcm_ctrl()
785 if (gctx->iv_gen == 0 || gctx->key_set == 0 || c->encrypt) in aes_gcm_ctrl()
803 if (!c->encrypt) in aes_gcm_ctrl()
897 if (EVP_CIPHER_CTX_ctrl(ctx, ctx->encrypt ? in aes_gcm_tls_cipher()
908 if (ctx->encrypt) in aes_gcm_tls_cipher()
979 else if (ctx->encrypt) in aes_gcm_cipher()
1011 if (!ctx->encrypt) in aes_gcm_cipher()
1142 ctx->encrypt)) in aes_xts_cipher()
1180 if ((c->encrypt && ptr) || (!c->encrypt && !ptr)) in aes_ccm_ctrl()
1191 if (!c->encrypt || !cctx->tag_set) in aes_ccm_ctrl()
1247 if (!ctx->encrypt && !cctx->tag_set) in aes_ccm_cipher()
1274 if (ctx->encrypt) in aes_ccm_cipher()