Lines Matching refs:authenc
121 return gctx->ctx->authenc; in AUTHENC_CTX()
3362 static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in chcr_authenc_setkey() argument
3365 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_authenc_setkey()
3370 unsigned int max_authsize = crypto_aead_alg(authenc)->maxauthsize; in chcr_authenc_setkey()
3380 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3383 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_authenc_setkey()
3384 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey()
3390 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_authenc_setkey()
3398 subtype = get_aead_subtype(authenc); in chcr_authenc_setkey()
3498 static int chcr_aead_digest_null_setkey(struct crypto_aead *authenc, in chcr_aead_digest_null_setkey() argument
3501 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_aead_digest_null_setkey()
3511 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3514 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_aead_digest_null_setkey()
3515 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_aead_digest_null_setkey()
3521 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_aead_digest_null_setkey()
3524 subtype = get_aead_subtype(authenc); in chcr_aead_digest_null_setkey()