Lines Matching refs:encrypt
937 bool encrypt) in aead_edesc_alloc() argument
957 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc()
970 (encrypt ? authsize : 0); in aead_edesc_alloc()
989 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1035 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
1131 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1156 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument
1167 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt()
1245 bool encrypt) in skcipher_edesc_alloc() argument
1261 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc()
1404 static inline int skcipher_crypt(struct skcipher_request *req, bool encrypt) in skcipher_crypt() argument
1432 return encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in skcipher_crypt()
1440 edesc = skcipher_edesc_alloc(req, encrypt); in skcipher_crypt()
1474 .encrypt = skcipher_encrypt,
1490 .encrypt = skcipher_encrypt,
1506 .encrypt = skcipher_encrypt,
1522 .encrypt = skcipher_encrypt,
1540 .encrypt = skcipher_encrypt,
1564 .encrypt = skcipher_encrypt,
1584 .encrypt = ipsec_gcm_encrypt,
1603 .encrypt = ipsec_gcm_encrypt,
1623 .encrypt = aead_encrypt,
1644 .encrypt = aead_encrypt,
1666 .encrypt = aead_encrypt,
1688 .encrypt = aead_encrypt,
1710 .encrypt = aead_encrypt,
1732 .encrypt = aead_encrypt,
1754 .encrypt = aead_encrypt,
1776 .encrypt = aead_encrypt,
1799 .encrypt = aead_encrypt,
1821 .encrypt = aead_encrypt,
1844 .encrypt = aead_encrypt,
1866 .encrypt = aead_encrypt,
1889 .encrypt = aead_encrypt,
1911 .encrypt = aead_encrypt,
1933 .encrypt = aead_encrypt,
1956 .encrypt = aead_encrypt,
1979 .encrypt = aead_encrypt,
2002 .encrypt = aead_encrypt,
2025 .encrypt = aead_encrypt,
2048 .encrypt = aead_encrypt,
2071 .encrypt = aead_encrypt,
2094 .encrypt = aead_encrypt,
2117 .encrypt = aead_encrypt,
2140 .encrypt = aead_encrypt,
2163 .encrypt = aead_encrypt,
2185 .encrypt = aead_encrypt,
2207 .encrypt = aead_encrypt,
2229 .encrypt = aead_encrypt,
2251 .encrypt = aead_encrypt,
2273 .encrypt = aead_encrypt,
2296 .encrypt = aead_encrypt,
2318 .encrypt = aead_encrypt,
2341 .encrypt = aead_encrypt,
2363 .encrypt = aead_encrypt,
2386 .encrypt = aead_encrypt,
2408 .encrypt = aead_encrypt,
2431 .encrypt = aead_encrypt,