Lines Matching refs:authenc

85 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key,  in crypto_authenc_setkey()  argument
88 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey()
98 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
101 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
108 crypto_ablkcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
111 crypto_aead_set_flags(authenc, crypto_ablkcipher_get_flags(enc) & in crypto_authenc_setkey()
118 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey()
126 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_update_done() local
127 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in authenc_geniv_ahash_update_done()
146 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_update_done()
155 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local
156 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in authenc_geniv_ahash_done()
165 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done()
178 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_verify_ahash_update_done() local
179 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in authenc_verify_ahash_update_done()
197 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_update_done()
227 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_verify_ahash_done() local
228 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in authenc_verify_ahash_done()
236 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_done()
261 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_ahash_fb() local
262 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_ahash_fb()
300 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_ahash() local
301 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_ahash()
327 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() local
333 unsigned int ivsize = crypto_aead_ivsize(authenc); in crypto_authenc_genicv()
371 crypto_aead_authsize(authenc), 1); in crypto_authenc_genicv()
381 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in crypto_authenc_encrypt_done() local
382 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt_done()
396 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() local
397 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt()
412 memcpy(iv, req->iv, crypto_aead_ivsize(authenc)); in crypto_authenc_encrypt()
437 struct crypto_aead *authenc = aead_givcrypt_reqtfm(req); in crypto_authenc_givencrypt() local
438 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_givencrypt()
461 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_verify() local
474 authsize = crypto_aead_authsize(authenc); in crypto_authenc_verify()
484 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_iverify() local
490 unsigned int ivsize = crypto_aead_ivsize(authenc); in crypto_authenc_iverify()
523 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() local
524 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt()
527 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt()