From e0f0f34c0c86f1fb729404bb87d637de9a4795ce Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 17 Feb 2014 19:20:51 -0600 Subject: + docs for AsymmetricSignContext, AsymmetricVerifyContext, AsymmetricPadding --- docs/hazmat/primitives/interfaces.rst | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index df17e59d..c0ddd79c 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -231,6 +231,39 @@ Asymmetric Interfaces The public exponent. Alias for :attr:`public_exponent`. +.. class:: AsymmetricSignContext + + .. versionadded:: 0.2 + + .. method:: update(data) + + :param bytes data: The data you wish to pass into the context. + + .. method:: finalize() + + :return bytes signature: The signature. + + +.. class:: AsymmetricVerifyContext + + .. versionadded:: 0.2 + + .. method:: update(data) + + :param bytes data: The data you wish to pass into the context. + + .. method:: finalize() + + :raises cryptography.exceptions.InvalidSignature: If signature does not + validate. + + +.. class:: AsymmetricPadding + + A named asymmetric padding. + + .. attribute:: name + Hash Algorithms ~~~~~~~~~~~~~~~ -- cgit v1.2.3 From 19f32d5502ec938047d3d46dc440d8fe9481caa8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 17 Feb 2014 19:23:06 -0600 Subject: add versionadded to AsymmetricPadding --- docs/hazmat/primitives/interfaces.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index c0ddd79c..e4ae3e93 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -260,7 +260,7 @@ Asymmetric Interfaces .. class:: AsymmetricPadding - A named asymmetric padding. + .. versionadded:: 0.2 .. attribute:: name -- cgit v1.2.3 From eda558ce9ffca610ee628884041832da4afb7645 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 17 Feb 2014 21:18:13 -0600 Subject: more renaming --- docs/hazmat/primitives/interfaces.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index e4ae3e93..e97f40f4 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -231,13 +231,13 @@ Asymmetric Interfaces The public exponent. Alias for :attr:`public_exponent`. -.. class:: AsymmetricSignContext +.. class:: AsymmetricSignatureContext .. versionadded:: 0.2 .. method:: update(data) - :param bytes data: The data you wish to pass into the context. + :param bytes data: The data you want to sign. .. method:: finalize() @@ -250,7 +250,7 @@ Asymmetric Interfaces .. method:: update(data) - :param bytes data: The data you wish to pass into the context. + :param bytes data: The data you wish to verify using the signature. .. method:: finalize() -- cgit v1.2.3 From dd3780a0e516b2c07e02f5b3afc02a79bfe44c6f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 18 Feb 2014 13:17:53 -0600 Subject: some grammar fixes, rename a method or two --- docs/hazmat/primitives/interfaces.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index e97f40f4..6fbc61b0 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -252,7 +252,7 @@ Asymmetric Interfaces :param bytes data: The data you wish to verify using the signature. - .. method:: finalize() + .. method:: verify() :raises cryptography.exceptions.InvalidSignature: If signature does not validate. -- cgit v1.2.3 From 430202dfba9a3c97abc80955752e5b9e4d430911 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 18 Feb 2014 13:36:53 -0600 Subject: let's try renaming everything I said I'd rename --- docs/hazmat/primitives/interfaces.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 6fbc61b0..5be3dd95 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -244,7 +244,7 @@ Asymmetric Interfaces :return bytes signature: The signature. -.. class:: AsymmetricVerifyContext +.. class:: AsymmetricVerificationContext .. versionadded:: 0.2 -- cgit v1.2.3