💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.asymmetric.dh captured on 2023-01-29 at 04:21:43. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
cryptography.hazmat.primitives.asymmetric
cryptography.hazmat.primitives
This module has no docstring.
parameters(self, backend: Any = None) -> 'DHParameters'
g = <property object at 0x7f75e311d6c0>
p = <property object at 0x7f75e311d670>
q = <property object at 0x7f75e311d710>
generate_private_key(self) -> 'DHPrivateKey' Generates and returns a DHPrivateKey.
parameter_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.ParameterFormat) -> bytes Returns the parameters serialized as bytes.
parameter_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameterNumbers Returns a DHParameterNumbers.
generate_private_key(self) -> 'DHPrivateKey' Generates and returns a DHPrivateKey.
parameter_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.ParameterFormat) -> bytes Returns the parameters serialized as bytes.
parameter_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameterNumbers Returns a DHParameterNumbers.
exchange(self, peer_public_key: cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey) -> bytes Given peer's DHPublicKey, carry out the key exchange and return shared key as bytes.
parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters The DHParameters object associated with this private key.
private_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.PrivateFormat, encryption_algorithm: cryptography.hazmat.primitives._serialization.KeySerializationEncryption) -> bytes Returns the key serialized as bytes.
private_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPrivateNumbers Returns a DHPrivateNumbers.
public_key(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey The DHPublicKey associated with this private key.
key_size = <abc.abstractproperty object at 0x7f75e3119480> The bit length of the prime modulus.
exchange(self, peer_public_key: cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey) -> bytes Given peer's DHPublicKey, carry out the key exchange and return shared key as bytes.
parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters The DHParameters object associated with this private key.
private_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.PrivateFormat, encryption_algorithm: cryptography.hazmat.primitives._serialization.KeySerializationEncryption) -> bytes Returns the key serialized as bytes.
private_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPrivateNumbers Returns a DHPrivateNumbers.
public_key(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey The DHPublicKey associated with this private key.
key_size = <abc.abstractproperty object at 0x7f75e3119480> The bit length of the prime modulus.
private_key(self, backend: Any = None) -> 'DHPrivateKey'
public_numbers = <property object at 0x7f75e311d9e0>
x = <property object at 0x7f75e311da30>
parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters The DHParameters object associated with this public key.
public_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.PublicFormat) -> bytes Returns the key serialized as bytes.
public_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPublicNumbers Returns a DHPublicNumbers.
key_size = <abc.abstractproperty object at 0x7f75e31193c0> The bit length of the prime modulus.
parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters The DHParameters object associated with this public key.
public_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding, format: cryptography.hazmat.primitives._serialization.PublicFormat) -> bytes Returns the key serialized as bytes.
public_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHPublicNumbers Returns a DHPublicNumbers.
key_size = <abc.abstractproperty object at 0x7f75e31193c0> The bit length of the prime modulus.
public_key(self, backend: Any = None) -> 'DHPublicKey'
parameter_numbers = <property object at 0x7f75e311d8a0>
y = <property object at 0x7f75e311d850>
generate_parameters(generator: int, key_size: int, backend: Any = None) -> 'DHParameters'