Lines Matching refs:authenc
121 return gctx->ctx->authenc; in AUTHENC_CTX()
3413 static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in chcr_authenc_setkey() argument
3416 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_authenc_setkey()
3421 unsigned int max_authsize = crypto_aead_alg(authenc)->maxauthsize; in chcr_authenc_setkey()
3431 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3434 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_authenc_setkey()
3435 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey()
3441 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_authenc_setkey()
3449 subtype = get_aead_subtype(authenc); in chcr_authenc_setkey()
3548 static int chcr_aead_digest_null_setkey(struct crypto_aead *authenc, in chcr_aead_digest_null_setkey() argument
3551 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_aead_digest_null_setkey()
3561 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3564 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_aead_digest_null_setkey()
3565 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_aead_digest_null_setkey()
3571 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_aead_digest_null_setkey()
3574 subtype = get_aead_subtype(authenc); in chcr_aead_digest_null_setkey()