Home
last modified time | relevance | path

Searched refs:public_numbers (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cryptography/tests/hazmat/primitives/
Dtest_dsa.py75 skey_parameters = numbers.public_numbers.parameter_numbers
87 public_numbers = pkey.public_numbers()
88 assert numbers.public_numbers.y == public_numbers.y
89 assert numbers.public_numbers.y == pow(
97 skey_parameters = numbers.public_numbers.parameter_numbers
98 assert numbers.public_numbers.y == pow(
107 DSA_KEY_1024.public_numbers.parameter_numbers.q,
108 DSA_KEY_1024.public_numbers.parameter_numbers.g,
112 DSA_KEY_2048.public_numbers.parameter_numbers.q,
113 DSA_KEY_2048.public_numbers.parameter_numbers.g,
[all …]
Dfixtures_ec.py16 public_numbers=ec.EllipticCurvePublicNumbers(
36 public_numbers=ec.EllipticCurvePublicNumbers(
54 public_numbers=ec.EllipticCurvePublicNumbers(
72 public_numbers=ec.EllipticCurvePublicNumbers(
89 public_numbers=ec.EllipticCurvePublicNumbers(
106 public_numbers=ec.EllipticCurvePublicNumbers(
126 public_numbers=ec.EllipticCurvePublicNumbers(
144 public_numbers=ec.EllipticCurvePublicNumbers(
162 public_numbers=ec.EllipticCurvePublicNumbers(
179 public_numbers=ec.EllipticCurvePublicNumbers(
[all …]
Dfixtures_rsa.py32 public_numbers=RSAPublicNumbers(
61 public_numbers=RSAPublicNumbers(
89 public_numbers=RSAPublicNumbers(
118 public_numbers=RSAPublicNumbers(
149 public_numbers=RSAPublicNumbers(
178 public_numbers=RSAPublicNumbers(
209 public_numbers=RSAPublicNumbers(
241 public_numbers=RSAPublicNumbers(
273 public_numbers=RSAPublicNumbers(
305 public_numbers=RSAPublicNumbers(
[all …]
Dtest_dh.py100 assert private.public_numbers is public
205 p = private.public_numbers.parameter_numbers.p
206 g = private.public_numbers.parameter_numbers.g
269 assert isinstance(public.public_numbers(), dh.DHPublicNumbers)
299 symkey_manual = pow(key1.public_key().public_numbers().y,
349 if pub_key2.public_numbers().y >= parameters1.p:
520 assert private_numbers.public_numbers.y == int(vec["y"], 16)
521 assert private_numbers.public_numbers.parameter_numbers.g == int(
523 assert private_numbers.public_numbers.parameter_numbers.p == int(
526 assert private_numbers.public_numbers.parameter_numbers.q == int(
[all …]
Dfixtures_dsa.py13 public_numbers=DSAPublicNumbers(
43 public_numbers=DSAPublicNumbers(
93 public_numbers=DSAPublicNumbers(
Dtest_serialization.py320 numbers = key.public_numbers()
475 numbers = key.public_numbers()
549 assert numbers.public_numbers.e == 65537
550 assert numbers.public_numbers.n == int(
811 assert numbers.public_numbers.n == int(
819 assert numbers.public_numbers.e == 65537
873 pub = num.public_numbers
1031 numbers = key.public_numbers()
1130 numbers = key.public_numbers()
1184 assert key.public_numbers() == ec.EllipticCurvePublicNumbers(
[all …]
Dtest_ec.py141 assert numbers.public_numbers.x == 2
142 assert numbers.public_numbers.y == 3
143 assert isinstance(numbers.public_numbers.curve, DummyCurve)
306 assert priv_num.public_numbers.x == vector['x']
307 assert priv_num.public_numbers.y == vector['y']
308 assert curve_type().name == priv_num.public_numbers.curve.name
1074 public_num = pn.public_numbers()
1098 assert pn.public_numbers().x == int(
1102 assert pn.public_numbers().y == int(
1217 public_numbers = ec.EllipticCurvePublicNumbers(
[all …]
Dtest_rsa.py161 assert isinstance(pkey.public_numbers(), rsa.RSAPublicNumbers)
203 public_numbers=rsa.RSAPublicNumbers(
216 public_num2 = private_num.public_numbers
382 public_numbers=rsa.RSAPublicNumbers(
420 public_numbers=rsa.RSAPublicNumbers(
982 public_key = RSA_KEY_512.public_numbers.public_key(backend)
1425 public_numbers=rsa.RSAPublicNumbers(
1513 public_numbers=rsa.RSAPublicNumbers(
1551 public_numbers=rsa.RSAPublicNumbers(
1817 public_numbers = rsa.RSAPublicNumbers(e=1, n=15)
[all …]
Dutils.py430 public_numbers = rsa.RSAPublicNumbers(
434 public_key = public_numbers.public_key(backend)
457 pkey = skey.public_numbers
470 pkey = skey.public_numbers
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Ddsa.py101 def public_numbers(self): member in DSAPublicKey
141 parameters = numbers.public_numbers.parameter_numbers
146 if numbers.public_numbers.y != pow(parameters.g, numbers.x, parameters.p):
228 def __init__(self, x, public_numbers): argument
232 if not isinstance(public_numbers, DSAPublicNumbers):
236 self._public_numbers = public_numbers
240 public_numbers = utils.read_only_property("_public_numbers") variable in DSAPrivateNumbers
250 self.x == other.x and self.public_numbers == other.public_numbers
Drsa.py90 def public_numbers(self): member in RSAPublicKey
270 public_numbers): argument
284 if not isinstance(public_numbers, RSAPublicNumbers):
296 self._public_numbers = public_numbers
304 public_numbers = utils.read_only_property("_public_numbers") variable in RSAPrivateNumbers
320 self.public_numbers == other.public_numbers
334 self.public_numbers,
Ddh.py19 def __init__(self, x, public_numbers): argument
23 if not isinstance(public_numbers, DHPublicNumbers):
28 self._public_numbers = public_numbers
45 public_numbers = utils.read_only_property("_public_numbers") variable in DHPrivateNumbers
200 def public_numbers(self): member in DHPublicKey
Dec.py138 def public_numbers(self): member in EllipticCurvePublicKey
431 def __init__(self, private_value, public_numbers): argument
435 if not isinstance(public_numbers, EllipticCurvePublicNumbers):
442 self._public_numbers = public_numbers
448 public_numbers = utils.read_only_property("_public_numbers") variable in EllipticCurvePrivateNumbers
456 self.public_numbers == other.public_numbers
463 return hash((self.private_value, self.public_numbers))
/external/python/cryptography/docs/development/custom-vectors/rsa-oaep-sha2/
Dgenerate_rsa_oaep_sha2.py36 output.append(format(pn.public_numbers.n, "x"))
38 output.append(format(pn.public_numbers.e, "x"))
41 output.append(format(pn.public_numbers.n, "x"))
43 output.append(format(pn.public_numbers.e, "x"))
64 public_numbers=rsa.RSAPublicNumbers(
/external/scapy/scapy/layers/tls/
Dkeyexchange_tls13.py68 self.key_exchange = pubkey.public_numbers().y
81 self.key_exchange = pubkey.public_numbers().encode_point()
105 public_numbers = dh.DHPublicNumbers(self.key_exchange, pn)
106 self.pubkey = public_numbers.public_key(default_backend())
115 public_numbers = import_point(curve, self.key_exchange)
116 self.pubkey = public_numbers.public_key(default_backend())
Dkeyexchange.py327 y = pubkey.public_numbers().y
346 public_numbers = dh.DHPublicNumbers(y, pn)
349 s.server_kx_pubkey = public_numbers.public_key(default_backend())
571 self.point = pubkey.public_numbers().encode_point()
643 pubNum = k.pubkey.public_numbers()
724 y = pubkey.public_numbers().y
754 public_numbers = dh.DHPublicNumbers(y, param_numbers)
755 s.client_kx_pubkey = public_numbers.public_key(default_backend())
782 x = pubkey.public_numbers().x
783 y = pubkey.public_numbers().y
Dcert.py273 pubNum = self.pubkey.public_numbers()
470 public_numbers=pubNum)
475 pubNum = self.pubkey.public_numbers()
/external/python/cryptography/src/cryptography/hazmat/primitives/serialization/
Dssh.py74 public_numbers = dsa.DSAPublicNumbers(y, parameter_numbers)
76 return public_numbers.public_key(backend)
/external/scapy/test/
Dcert.uts35 x_pubNum = x.pubkey.public_numbers()
43 y_pubNum = y.pubkey.public_numbers()
68 z.pubkey.public_numbers().x == 10474865617476949695237000542156651825270426300019272013458514924475…
106 x_pubNum = x.pubkey.public_numbers()
132 y.key.public_key().public_numbers().y == 8629057563777281845206256941009250317988273881091895191392…
220 x_pubNum = x.pubKey.pubkey.public_numbers()
252 pubkey.public_numbers().x == 3987178688175281746349180015490646948656137448666005327832107126183726…
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dbackend.py396 numbers.public_numbers.e,
397 numbers.public_numbers.n
408 e = self._int_to_bn(numbers.public_numbers.e)
409 n = self._int_to_bn(numbers.public_numbers.n)
627 parameter_numbers = numbers.public_numbers.parameter_numbers
636 pub_key = self._int_to_bn(numbers.public_numbers.y)
1364 public = numbers.public_numbers
1849 public_numbers = key.public_numbers()
1852 ssh._ssh_write_mpint(public_numbers.e) +
1853 ssh._ssh_write_mpint(public_numbers.n)
[all …]
Dec.py208 public_numbers=self.public_key().public_numbers()
255 def public_numbers(self): member in _EllipticCurvePublicKey
Ddh.py135 public_numbers=dh.DHPublicNumbers(
229 def public_numbers(self): member in _DHPublicKey
Ddsa.py143 public_numbers=dsa.DSAPublicNumbers(
221 def public_numbers(self): member in _DSAPublicKey
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Ddh.rst291 .. method:: public_numbers()
361 .. class:: DHPrivateNumbers(x, public_numbers)
367 .. attribute:: public_numbers
Ddsa.rst208 .. class:: DSAPrivateNumbers(x, public_numbers)
225 .. attribute:: public_numbers
387 .. method:: public_numbers()

12