Lines Matching refs:tfm
127 BUILD_BUG_ON(ARRAY_SIZE(authsizes) != ARRAY_SIZE(key->tfm)); in llsec_key_alloc()
129 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) { in llsec_key_alloc()
130 key->tfm[i] = crypto_alloc_aead("ccm(aes)", 0, in llsec_key_alloc()
132 if (IS_ERR(key->tfm[i])) in llsec_key_alloc()
134 if (crypto_aead_setkey(key->tfm[i], template->key, in llsec_key_alloc()
137 if (crypto_aead_setauthsize(key->tfm[i], authsizes[i])) in llsec_key_alloc()
154 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_key_alloc()
155 if (!IS_ERR_OR_NULL(key->tfm[i])) in llsec_key_alloc()
156 crypto_free_aead(key->tfm[i]); in llsec_key_alloc()
169 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_key_release()
170 crypto_free_aead(key->tfm[i]); in llsec_key_release()
648 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_tfm_by_len()
649 if (crypto_aead_authsize(key->tfm[i]) == authlen) in llsec_tfm_by_len()
650 return key->tfm[i]; in llsec_tfm_by_len()