Searched refs:pkcs_i2osp (Results 1 – 9 of 9) sorted by relevance
/external/scapy/scapy/layers/tls/ |
D | keyexchange.py | 21 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 …]
|
D | record.py | 30 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))
|
D | keyexchange_tls13.py | 19 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
|
D | cert.py | 50 from scapy.layers.tls.crypto.pkcs1 import (pkcs_os2ip, pkcs_i2osp, _get_hash,
|
/external/scapy/scapy/layers/tls/crypto/ |
D | pkcs1.py | 43 def pkcs_i2osp(n, sLen): function 179 EM = pkcs_i2osp(m, k) 225 return pkcs_i2osp(s, k)
|
D | cipher_aead.py | 19 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/ |
D | notebook2_tls_protected.ipynb | 157 "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/ |
D | cert.uts | 16 pkcs_i2osp(0xffff, 4) == b'\x00\x00\xff\xff' and pkcs_i2osp(0xffff, 2) == b'\xff\xff' and pkcs_i2os…
|
D | tls.uts | 902 x = pkcs_i2osp(pn.x, pn.curve.key_size/8) 903 y = pkcs_i2osp(pn.y, pn.curve.key_size/8)
|