Lines Matching refs:xpn

375 static bool macsec_validate_skb(struct sk_buff *skb, u16 icv_len, bool xpn)  in macsec_validate_skb()  argument
401 if (!h->packet_number && !xpn) in macsec_validate_skb()
460 if (secy->xpn) in tx_sa_update_pn()
662 if (secy->xpn) in macsec_encrypt()
725 (!secy->xpn || pn_same_half(pn, lowest_pn))) { in macsec_post_decrypt()
781 } else if (secy->xpn && in macsec_post_decrypt()
890 if (secy->xpn) { in macsec_decrypt()
1183 if (!macsec_validate_skb(skb, secy->icv_len, secy->xpn)) { in macsec_handle_frame()
1225 if (secy->xpn) in macsec_handle_frame()
1772 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_add_rxsa()
1781 if (secy->xpn) { in macsec_add_rxsa()
1827 if (secy->xpn) { in macsec_add_rxsa()
2016 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_add_txsa()
2024 if (secy->xpn) { in macsec_add_txsa()
2070 if (secy->xpn) { in macsec_add_txsa()
2362 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_upd_txsa()
2460 pn_len = secy->xpn ? MACSEC_XPN_PN_LEN : MACSEC_DEFAULT_PN_LEN; in macsec_upd_rxsa()
3036 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in nla_put_secy()
3039 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in nla_put_secy()
3166 if (secy->xpn) { in dump_secy()
3177 (secy->xpn && nla_put_ssci(skb, MACSEC_SA_ATTR_SSCI, tx_sa->ssci)) || in dump_secy()
3271 if (secy->xpn) { in dump_secy()
3282 (secy->xpn && nla_put_ssci(skb, MACSEC_SA_ATTR_SSCI, rx_sa->ssci)) || in dump_secy()
3867 secy->xpn = false; in macsec_changelink_common()
3871 secy->xpn = false; in macsec_changelink_common()
3875 secy->xpn = true; in macsec_changelink_common()
3879 secy->xpn = true; in macsec_changelink_common()
3891 if (secy->xpn && in macsec_changelink_common()
4100 secy->xpn = DEFAULT_XPN; in macsec_add_dev()
4370 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in macsec_fill_info()
4373 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in macsec_fill_info()