Lines Matching refs:encrypt
304 aesni_cbc_encrypt(in, out, len, ctx->cipher_data, ctx->iv, ctx->encrypt);
317 aesni_ecb_encrypt(in, out, len, ctx->cipher_data, ctx->encrypt);
1022 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, ctx->encrypt);
1023 else if (ctx->encrypt)
1063 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
1073 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
1084 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
1090 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
1095 ctx->iv, &ctx->num, ctx->encrypt, dat->block);
1174 if (arg <= 0 || arg > 16 || c->encrypt)
1181 if (arg <= 0 || arg > 16 || !c->encrypt || gctx->taglen < 0)
1201 if (c->encrypt && RAND_bytes(gctx->iv + arg, gctx->ivlen - arg) <= 0)
1222 if (gctx->iv_gen == 0 || gctx->key_set == 0 || c->encrypt)
1240 if (!c->encrypt)
1349 * followed by the payload and finally the tag. On encrypt generate IV,
1350 * encrypt payload and write the tag. On verify retrieve IV, decrypt payload
1367 if (EVP_CIPHER_CTX_ctrl(ctx, ctx->encrypt ?
1378 if (ctx->encrypt) {
1489 } else if (ctx->encrypt) {
1580 if (!ctx->encrypt) {
1734 ctx->encrypt))
1774 if (c->encrypt && ptr)
1784 if (!c->encrypt || !cctx->tag_set)
1861 if (!ctx->encrypt && !cctx->tag_set)
1885 if (ctx->encrypt) {
1938 if (ctx->encrypt)
1961 if (ctx->encrypt && inlen < 8)
1963 if (!ctx->encrypt && inlen < 16)
1966 if (ctx->encrypt)
1971 if (ctx->encrypt)