Searched refs:icvlen (Results 1 - 3 of 3) sorted by relevance

/external/scapy/scapy/contrib/
H A Dmacsec.py47 def __init__(self, sci, an, pn, key, icvlen, encrypt, send_sci):
57 self.icvlen = icvlen
66 def split_pkt(pkt, assoclen, icvlen=0):
73 if icvlen:
74 icv = data[-icvlen:]
75 enc = data[assoclen:-icvlen]
87 return self.do_encrypt or self.icvlen != DEFAULT_ICV_LEN
167 assoclen = pktlen - self.icvlen
169 assoc, ct, icv = MACsecSA.split_pkt(orig_pkt, assoclen, self.icvlen)
[all...]
/external/iproute2/ip/
H A Dipmacsec.c148 static void get_icvlen(__u8 *icvlen, char *arg) argument
150 int ret = get_u8(icvlen, arg, 10);
155 if (*icvlen < MACSEC_MIN_ICV_LEN || *icvlen > MACSEC_STD_ICV_LEN)
1056 fprintf(f, "icvlen %hhu ",
1122 " [ icvlen { 8..16 } ]\n"
1173 } else if (strcmp(*argv, "icvlen") == 0) {
1176 duparg("icvlen", *argv);
H A Dxfrm_state.c461 __u32 icvlen, trunclen; local
518 if (get_u32(&icvlen, *argv, 0))
521 alg.u.aead.alg_icv_len = icvlen;

Completed in 1342 milliseconds