Lines Matching refs:aead
435 if (!xs->aead) { in ixgbe_ipsec_parse_proto_keys()
440 if (xs->aead->alg_icv_len != IXGBE_IPSEC_AUTH_BITS) { in ixgbe_ipsec_parse_proto_keys()
446 key_data = &xs->aead->alg_key[0]; in ixgbe_ipsec_parse_proto_keys()
447 key_len = xs->aead->alg_key_len; in ixgbe_ipsec_parse_proto_keys()
448 alg_name = xs->aead->alg_name; in ixgbe_ipsec_parse_proto_keys()
615 rsa.decrypt = xs->ealg || xs->aead; in ixgbe_ipsec_add_sa()
725 tsa.encrypt = xs->ealg || xs->aead; in ixgbe_ipsec_add_sa()
939 aead_len = sizeof(*xs->aead) + IXGBE_IPSEC_KEY_BITS / 8; in ixgbe_ipsec_vf_add_sa()
940 xs->aead = kzalloc(aead_len, GFP_ATOMIC); in ixgbe_ipsec_vf_add_sa()
941 if (unlikely(!xs->aead)) { in ixgbe_ipsec_vf_add_sa()
947 xs->geniv = algo->uinfo.aead.geniv; in ixgbe_ipsec_vf_add_sa()
948 xs->aead->alg_icv_len = IXGBE_IPSEC_AUTH_BITS; in ixgbe_ipsec_vf_add_sa()
949 xs->aead->alg_key_len = IXGBE_IPSEC_KEY_BITS; in ixgbe_ipsec_vf_add_sa()
950 memcpy(xs->aead->alg_key, sam->key, sizeof(sam->key)); in ixgbe_ipsec_vf_add_sa()
951 memcpy(xs->aead->alg_name, aes_gcm_name, sizeof(aes_gcm_name)); in ixgbe_ipsec_vf_add_sa()
974 kfree_sensitive(xs->aead); in ixgbe_ipsec_vf_add_sa()