Lines Matching refs:xpn
389 static bool macsec_validate_skb(struct sk_buff *skb, u16 icv_len, bool xpn) in macsec_validate_skb() argument
415 if (!h->packet_number && !xpn) in macsec_validate_skb()
479 if (secy->xpn) in tx_sa_update_pn()
676 if (secy->xpn) in macsec_encrypt()
738 (!secy->xpn || pn_same_half(pn, lowest_pn))) { in macsec_post_decrypt()
790 } else if (secy->xpn && in macsec_post_decrypt()
904 if (secy->xpn) { in macsec_decrypt()
1154 if (!macsec_validate_skb(skb, secy->icv_len, secy->xpn)) { in macsec_handle_frame()
1194 if (secy->xpn) in macsec_handle_frame()
1753 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_add_rxsa()
1761 if (secy->xpn) { in macsec_add_rxsa()
1829 if (secy->xpn) { in macsec_add_rxsa()
1995 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_add_txsa()
2003 if (secy->xpn) { in macsec_add_txsa()
2071 if (secy->xpn) { in macsec_add_txsa()
2340 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_upd_txsa()
2437 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_upd_rxsa()
2983 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in nla_put_secy()
2986 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in nla_put_secy()
3113 if (secy->xpn) { in dump_secy()
3124 (secy->xpn && nla_put_ssci(skb, MACSEC_SA_ATTR_SSCI, tx_sa->ssci)) || in dump_secy()
3218 if (secy->xpn) { in dump_secy()
3229 (secy->xpn && nla_put_ssci(skb, MACSEC_SA_ATTR_SSCI, rx_sa->ssci)) || in dump_secy()
3770 secy->xpn = false; in macsec_changelink_common()
3774 secy->xpn = false; in macsec_changelink_common()
3778 secy->xpn = true; in macsec_changelink_common()
3782 secy->xpn = true; in macsec_changelink_common()
3972 secy->xpn = DEFAULT_XPN; in macsec_add_dev()
4211 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in macsec_fill_info()
4214 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in macsec_fill_info()