Lines Matching refs:aead
163 static inline int get_aead_subtype(struct crypto_aead *aead) in get_aead_subtype() argument
165 struct aead_alg *alg = crypto_aead_alg(aead); in get_aead_subtype()
167 container_of(alg, struct chcr_alg_template, alg.aead); in get_aead_subtype()
2896 struct crypto_aead *aead = crypto_aead_reqtfm(req); in generate_b0() local
2900 m = crypto_aead_authsize(aead); in generate_b0()
3419 static int chcr_ccm_common_setkey(struct crypto_aead *aead, in chcr_ccm_common_setkey() argument
3423 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead)); in chcr_ccm_common_setkey()
3449 static int chcr_aead_ccm_setkey(struct crypto_aead *aead, in chcr_aead_ccm_setkey() argument
3453 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead)); in chcr_aead_ccm_setkey()
3457 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3462 return chcr_ccm_common_setkey(aead, key, keylen); in chcr_aead_ccm_setkey()
3465 static int chcr_aead_rfc4309_setkey(struct crypto_aead *aead, const u8 *key, in chcr_aead_rfc4309_setkey() argument
3468 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead)); in chcr_aead_rfc4309_setkey()
3476 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3483 return chcr_ccm_common_setkey(aead, key, keylen); in chcr_aead_rfc4309_setkey()
3486 static int chcr_gcm_setkey(struct crypto_aead *aead, const u8 *key, in chcr_gcm_setkey() argument
3489 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(aead)); in chcr_gcm_setkey()
3497 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3503 if (get_aead_subtype(aead) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106 && in chcr_gcm_setkey()
4051 .alg.aead = {
4070 .alg.aead = {
4090 .alg.aead = {
4109 .alg.aead = {
4128 .alg.aead = {
4149 .alg.aead = {
4171 .alg.aead = {
4191 .alg.aead = {
4212 .alg.aead = {
4233 .alg.aead = {
4254 .alg.aead = {
4275 .alg.aead = {
4297 .alg.aead = {
4317 .alg.aead = {
4338 .alg.aead = {
4359 .alg.aead = {
4400 &driver_algs[i].alg.aead.base.cra_refcnt) == 1) { in chcr_unregister_alg()
4402 &driver_algs[i].alg.aead); in chcr_unregister_alg()
4455 driver_algs[i].alg.aead.base.cra_flags = in chcr_register_alg()
4458 driver_algs[i].alg.aead.encrypt = chcr_aead_encrypt; in chcr_register_alg()
4459 driver_algs[i].alg.aead.decrypt = chcr_aead_decrypt; in chcr_register_alg()
4460 driver_algs[i].alg.aead.init = chcr_aead_cra_init; in chcr_register_alg()
4461 driver_algs[i].alg.aead.exit = chcr_aead_cra_exit; in chcr_register_alg()
4462 driver_algs[i].alg.aead.base.cra_module = THIS_MODULE; in chcr_register_alg()
4463 err = crypto_register_aead(&driver_algs[i].alg.aead); in chcr_register_alg()
4464 name = driver_algs[i].alg.aead.base.cra_driver_name; in chcr_register_alg()