Home
last modified time | relevance | path

Searched refs:pkcs_i2osp (Results 1 – 9 of 9) sorted by relevance

/external/scapy/scapy/layers/tls/
Dkeyexchange.py21 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
311 self.dh_p = pkcs_i2osp(default_params.p, default_mLen//8)
316 self.dh_g = pkcs_i2osp(default_params.g, 1)
328 self.dh_Ys = pkcs_i2osp(y, pubkey.key_size//8)
646 self.rsamod = pkcs_i2osp(pubNum.n, k.pubkey.key_size//8)
652 self.rsaexp = pkcs_i2osp(pubNum.e, rsaexplen)
725 self.dh_Yc = pkcs_i2osp(y, pubkey.key_size//8)
740 return pkcs_i2osp(self.dh_Yclen, 2) + self.dh_Yc + pay
785 pkcs_i2osp(x, params.key_size//8) +
786 pkcs_i2osp(y, params.key_size//8))
[all …]
Drecord.py30 from scapy.layers.tls.crypto.pkcs1 import randstring, pkcs_i2osp
547 pkcs_i2osp(self.type, 1) +
548 pkcs_i2osp(self.version, 2) +
549 pkcs_i2osp(len(s), 2))
Dkeyexchange_tls13.py19 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
Dcert.py50 from scapy.layers.tls.crypto.pkcs1 import (pkcs_os2ip, pkcs_i2osp, _get_hash,
/external/scapy/scapy/layers/tls/crypto/
Dpkcs1.py43 def pkcs_i2osp(n, sLen): function
179 EM = pkcs_i2osp(m, k)
225 return pkcs_i2osp(s, k)
Dcipher_aead.py19 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
119 pkcs_i2osp(self.nonce_explicit, self.nonce_explicit_len))
155 nonce_explicit = pkcs_i2osp(self.nonce_explicit,
/external/scapy/doc/notebooks/tls/
Dnotebook2_tls_protected.ipynb157 "cli_random = pkcs_i2osp(record1.msg[0].gmt_unix_time, 4) + record1.msg[0].random_bytes\n",
158 "srv_random = pkcs_i2osp(record2.msg[0].gmt_unix_time, 4) + record2.msg[0].random_bytes\n",
/external/scapy/test/
Dcert.uts16 pkcs_i2osp(0xffff, 4) == b'\x00\x00\xff\xff' and pkcs_i2osp(0xffff, 2) == b'\xff\xff' and pkcs_i2os…
Dtls.uts902 x = pkcs_i2osp(pn.x, pn.curve.key_size/8)
903 y = pkcs_i2osp(pn.y, pn.curve.key_size/8)