crypto_ahash_set_flags
crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) &
crypto_ahash_set_flags(tfm, CRYPTO_TFM_NEED_KEY);
crypto_ahash_set_flags(tfm,
crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) &
crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc_esn) &
crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) &
crypto_ahash_set_flags(auth, flags & CRYPTO_TFM_REQ_MASK);
crypto_ahash_set_flags(tfm, flags & CRYPTO_TFM_REQ_MASK);