diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-16 13:17:14 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-16 14:34:11 -0600 |
commit | 0d6203f25ad15d5e369e23c8a30ba9d2e42eaf1e (patch) | |
tree | 74f152da91f230f3b8c006e0ebca3eb5f86cf770 /docs/hazmat/primitives/asymmetric/index.rst | |
parent | 426eee7e732f90f04740e055381f0b37dadc2df1 (diff) | |
download | cryptography-0d6203f25ad15d5e369e23c8a30ba9d2e42eaf1e.tar.gz cryptography-0d6203f25ad15d5e369e23c8a30ba9d2e42eaf1e.tar.bz2 cryptography-0d6203f25ad15d5e369e23c8a30ba9d2e42eaf1e.zip |
move asymmetric signature/verification interfaces
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/index.rst')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/index.rst | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/index.rst b/docs/hazmat/primitives/asymmetric/index.rst index 43761fde..203f589a 100644 --- a/docs/hazmat/primitives/asymmetric/index.rst +++ b/docs/hazmat/primitives/asymmetric/index.rst @@ -32,4 +32,36 @@ and Elliptic Curve. serialization utils +.. module:: cryptography.hazmat.primitives.asymmetric + +Signature Interfaces +~~~~~~~~~~~~~~~~~~~~ + +.. class:: AsymmetricSignatureContext + + .. versionadded:: 0.2 + + .. method:: update(data) + + :param bytes data: The data you want to sign. + + .. method:: finalize() + + :return bytes signature: The signature. + + +.. class:: AsymmetricVerificationContext + + .. versionadded:: 0.2 + + .. method:: update(data) + + :param bytes data: The data you wish to verify using the signature. + + .. method:: verify() + + :raises cryptography.exceptions.InvalidSignature: If the signature does + not validate. + + .. _`proof of identity`: https://en.wikipedia.org/wiki/Public-key_infrastructure |