💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.asymmetric.dh captured on 2022-03-01 at 16:13:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

➡️ Next capture (2022-04-28)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

cryptography.hazmat.primitives.asymmetric

cryptography.hazmat.primitives

cryptography.hazmat

cryptography

cryptography.hazmat.primitives.asymmetric.dh

This module has no docstring.

Classes

DHParameterNumbers

parameters(self, backend=None)
g = <property object at 0x7f0227216bd0>
p = <property object at 0x7f0227216b80>
q = <property object at 0x7f0227216c20>

DHParameters

generate_private_key(self) -> 'DHPrivateKey'


          Generates and returns a DHPrivateKey.
        
parameter_bytes(self, encoding: 'serialization.Encoding', format: 'serialization.ParameterFormat') -> bytes


          Returns the parameters serialized as bytes.
        
parameter_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameterNumbers


          Returns a DHParameterNumbers.
        

DHParameters

generate_private_key(self) -> 'DHPrivateKey'


          Generates and returns a DHPrivateKey.
        
parameter_bytes(self, encoding: 'serialization.Encoding', format: 'serialization.ParameterFormat') -> bytes


          Returns the parameters serialized as bytes.
        
parameter_numbers(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameterNumbers


          Returns a DHParameterNumbers.
        

DHPrivateKey

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: 'serialization.Encoding', format: 'serialization.PrivateFormat', encryption_algorithm: '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 0x7f022721a340>

          The bit length of the prime modulus.
        

DHPrivateKey

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: 'serialization.Encoding', format: 'serialization.PrivateFormat', encryption_algorithm: '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 0x7f022721a340>

          The bit length of the prime modulus.
        

DHPrivateNumbers

private_key(self, backend=None) -> 'DHPrivateKey'
public_numbers = <property object at 0x7f0227216db0>
x = <property object at 0x7f0227216e00>

DHPublicKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters


          The DHParameters object associated with this public key.
        
public_bytes(self, encoding: 'serialization.Encoding', format: '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 0x7f022721a2e0>

          The bit length of the prime modulus.
        

DHPublicKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dh.DHParameters


          The DHParameters object associated with this public key.
        
public_bytes(self, encoding: 'serialization.Encoding', format: '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 0x7f022721a2e0>

          The bit length of the prime modulus.
        

DHPublicNumbers

public_key(self, backend=None) -> 'DHPublicKey'
parameter_numbers = <property object at 0x7f0227216d10>
y = <property object at 0x7f0227216cc0>

Functions

generate_parameters

generate_parameters(generator, key_size, backend=None) -> 'DHParameters'

Other members

utils = <cryptography.utils._ModuleWithDeprecations object at 0x7f0227231bb0>

Modules

abc

serialization

typing