Danger
This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.
Signature Interfaces¶
-
class
cryptography.hazmat.primitives.asymmetric.
AsymmetricSignatureContext
¶ New in version 0.2.
-
update
(data)¶ Parameters: data (bytes) – The data you want to sign.
-
finalize
()¶ Return bytes signature: The signature.
-
-
class
cryptography.hazmat.primitives.asymmetric.
AsymmetricVerificationContext
¶ New in version 0.2.
-
update
(data)¶ Parameters: data (bytes) – The data you wish to verify using the signature.
-
verify
()¶ Raises: cryptography.exceptions.InvalidSignature – If the signature does not validate.
-