Home | History | Annotate | Download | only in evp

Lines Matching full:encrypt

268 	aesni_cbc_encrypt(in,out,len,ctx->cipher_data,ctx->iv,ctx->encrypt);
280 aesni_ecb_encrypt(in,out,len,ctx->cipher_data,ctx->encrypt);
580 (*dat->stream.cbc)(in,out,len,&dat->ks,ctx->iv,ctx->encrypt);
581 else if (ctx->encrypt)
620 ctx->iv,&ctx->num,ctx->encrypt,dat->block);
630 ctx->iv,&ctx->num,ctx->encrypt,dat->block);
641 ctx->iv,&ctx->num,ctx->encrypt,dat->block);
647 ctx->iv,&ctx->num,ctx->encrypt,dat->block);
652 ctx->iv,&ctx->num,ctx->encrypt,dat->block);
736 if (arg <= 0 || arg > 16 || c->encrypt)
743 if (arg <= 0 || arg > 16 || !c->encrypt || gctx->taglen < 0)
763 if (c->encrypt &&
785 if (gctx->iv_gen == 0 || gctx->key_set == 0 || c->encrypt)
803 if (!c->encrypt)
881 * followed by the payload and finally the tag. On encrypt generate IV,
882 * encrypt payload and write the tag. On verify retrieve IV, decrypt payload
891 /* Encrypt/decrypt must be performed in place */
897 if (EVP_CIPHER_CTX_ctrl(ctx, ctx->encrypt ?
908 if (ctx->encrypt)
910 /* Encrypt payload */
972 if (!ctx->encrypt && gctx->taglen < 0)
981 else if (ctx->encrypt)
1013 if (!ctx->encrypt)
1142 ctx->encrypt))
1180 if ((c->encrypt && ptr) || (!c->encrypt && !ptr))
1191 if (!c->encrypt || !cctx->tag_set)
1246 if (!ctx->encrypt && !cctx->tag_set)
1273 if (ctx->encrypt)