Lines Matching refs:seq_num
759 def __init__(self, proto, spi, seq_num=1, crypt_algo=None, crypt_key=None, argument
784 self.seq_num = seq_num
830 def _encrypt_esp(self, pkt, seq_num=None, iv=None): argument
838 esp = _ESPPlain(spi=self.spi, seq=seq_num or self.seq_num, iv=iv)
880 if seq_num is None:
881 self.seq_num += 1
885 def _encrypt_ah(self, pkt, seq_num=None): argument
887 ah = AH(spi=self.spi, seq=seq_num or self.seq_num,
930 if seq_num is None:
931 self.seq_num += 1
935 def encrypt(self, pkt, seq_num=None, iv=None): argument
952 return self._encrypt_esp(pkt, seq_num=seq_num, iv=iv)
954 return self._encrypt_ah(pkt, seq_num=seq_num)