💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.asymmetric.dsa captured on 2022-07-16 at 15:06:17. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

➡️ Next capture (2023-01-29)

🚧 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.dsa

This module has no docstring.

Classes

AsymmetricSignatureContext

finalize(self) -> bytes


          Returns the signature as bytes.
        
update(self, data: bytes) -> None


          Processes the provided bytes and returns nothing.
        

AsymmetricVerificationContext

update(self, data: bytes) -> None


          Processes the provided bytes and returns nothing.
        
verify(self) -> None


          Raises an exception if the bytes provided to update do not match the
          signature or the signature does not match the public key.
        

DSAParameterNumbers

parameters(self, backend: Any = None) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters
g = <property object at 0x7f92bf12ce00>
p = <property object at 0x7f92bf12cd60>
q = <property object at 0x7f92bf12cdb0>

DSAParameters

generate_private_key(self) -> 'DSAPrivateKey'


          Generates and returns a DSAPrivateKey.
        
parameter_numbers(self) -> 'DSAParameterNumbers'


          Returns a DSAParameterNumbers.
        

DSAParameters

generate_private_key(self) -> 'DSAPrivateKey'


          Generates and returns a DSAPrivateKey.
        
parameter_numbers(self) -> 'DSAParameterNumbers'


          Returns a DSAParameterNumbers.
        

DSAPrivateKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters


          The DSAParameters 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) -> 'DSAPrivateNumbers'


          Returns a DSAPrivateNumbers.
        
public_key(self) -> 'DSAPublicKey'


          The DSAPublicKey associated with this private key.
        
sign(self, data: bytes, algorithm: Union[cryptography.hazmat.primitives.asymmetric.utils.Prehashed, cryptography.hazmat.primitives.hashes.HashAlgorithm]) -> bytes


          Signs the data
        
signer(self, signature_algorithm: cryptography.hazmat.primitives.hashes.HashAlgorithm) -> cryptography.hazmat.primitives.asymmetric.AsymmetricSignatureContext


          Returns an AsymmetricSignatureContext used for signing data.
        
key_size = <abc.abstractproperty object at 0x7f92bf12e460>

          The bit length of the prime modulus.
        

DSAPrivateKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters


          The DSAParameters 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) -> 'DSAPrivateNumbers'


          Returns a DSAPrivateNumbers.
        
public_key(self) -> 'DSAPublicKey'


          The DSAPublicKey associated with this private key.
        
sign(self, data: bytes, algorithm: Union[cryptography.hazmat.primitives.asymmetric.utils.Prehashed, cryptography.hazmat.primitives.hashes.HashAlgorithm]) -> bytes


          Signs the data
        
signer(self, signature_algorithm: cryptography.hazmat.primitives.hashes.HashAlgorithm) -> cryptography.hazmat.primitives.asymmetric.AsymmetricSignatureContext


          Returns an AsymmetricSignatureContext used for signing data.
        
key_size = <abc.abstractproperty object at 0x7f92bf12e460>

          The bit length of the prime modulus.
        

DSAPrivateNumbers

private_key(self, backend: Any = None) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey
public_numbers = <property object at 0x7f92bf0b5040>
x = <property object at 0x7f92bf12cf90>

DSAPublicKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters


          The DSAParameters 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) -> 'DSAPublicNumbers'


          Returns a DSAPublicNumbers.
        
verifier(self, signature: bytes, signature_algorithm: cryptography.hazmat.primitives.hashes.HashAlgorithm) -> cryptography.hazmat.primitives.asymmetric.AsymmetricVerificationContext


          Returns an AsymmetricVerificationContext used for signing data.
        
verify(self, signature: bytes, data: bytes, algorithm: Union[cryptography.hazmat.primitives.asymmetric.utils.Prehashed, cryptography.hazmat.primitives.hashes.HashAlgorithm]) -> None


          Verifies the signature of the data.
        
key_size = <abc.abstractproperty object at 0x7f92bf12e520>

          The bit length of the prime modulus.
        

DSAPublicKey

parameters(self) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters


          The DSAParameters 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) -> 'DSAPublicNumbers'


          Returns a DSAPublicNumbers.
        
verifier(self, signature: bytes, signature_algorithm: cryptography.hazmat.primitives.hashes.HashAlgorithm) -> cryptography.hazmat.primitives.asymmetric.AsymmetricVerificationContext


          Returns an AsymmetricVerificationContext used for signing data.
        
verify(self, signature: bytes, data: bytes, algorithm: Union[cryptography.hazmat.primitives.asymmetric.utils.Prehashed, cryptography.hazmat.primitives.hashes.HashAlgorithm]) -> None


          Verifies the signature of the data.
        
key_size = <abc.abstractproperty object at 0x7f92bf12e520>

          The bit length of the prime modulus.
        

DSAPublicNumbers

public_key(self, backend: Any = None) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey
parameter_numbers = <property object at 0x7f92bf12cef0>
y = <property object at 0x7f92bf12cea0>

Functions

generate_parameters

generate_parameters(key_size: int, backend: Any = None) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters

generate_private_key

generate_private_key(key_size: int, backend: Any = None) -> cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey

Modules

abc

asym_utils

hashes

typing