From 085f37861e4a505a12a1ddb940788a3025fdcf4f Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Tue, 1 Apr 2014 16:18:17 +0100 Subject: Elliptic curve interfaces --- docs/hazmat/primitives/interfaces.rst | 97 +++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index dc09a26f..6ec6de62 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -463,6 +463,101 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` +.. class:: EllipticCurve + + .. versionadded:: 0.4 + + A named elliptic curve. + + .. attribute:: name + + :type: string + + The name of the curve. Usually the name used for the ASN.1 OID such as + "secp256k1". + + .. attribute:: key_size + + :type: int + + The bit length of the curves base point. + + +.. class:: EllipticCurvePrivateKey + + .. versionadded:: 0.4 + + An elliptic curve private key for use with an algorithm such as `ECDSA`_ or + `EdDSA`_. + + .. attribute:: curve + + :type: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurve` + + The elliptic curve for this key. + + .. attribute:: private_key + + :type: int + + The private key. + + .. attribute:: key_size + + :type: int + + The bit length of the curves base point. + + .. attribute:: x + + :type: int + + The affine x component of the public point used for verifying. + + .. attribute:: y + + :type: int + + The affine y component of the public point used for verifying. + + .. method:: public_key() + + :return: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` + + The EllipticCurvePublicKey object for this private key. + + +.. class:: EllipticCurvePublicKey + + .. versionadded:: 0.4 + + An elliptic curve public key. + + .. attribute:: curve + + :type: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurve` + + The elliptic curve for this key. + + .. attribute:: x + + :type: int + + The affine x component of the public point used for verifying. + + .. attribute:: y + + :type: int + + The affine y component of the public point used for verifying. + + .. attribute:: key_size + + :type: int + + The bit length of the curves base point. + + .. class:: AsymmetricSignatureContext .. versionadded:: 0.2 @@ -612,3 +707,5 @@ Key derivation functions .. _`Chinese remainder theorem`: https://en.wikipedia.org/wiki/Chinese_remainder_theorem .. _`DSA`: https://en.wikipedia.org/wiki/Digital_Signature_Algorithm .. _`CMAC`: https://en.wikipedia.org/wiki/CMAC +.. _`ECDSA`: http://en.wikipedia.org/wiki/ECDSA +.. _`EdDSA`: http://en.wikipedia.org/wiki/EdDSA -- cgit v1.2.3 From a1853f9bdbabd1f7c48229272915e1fcf4b998e7 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 18 Apr 2014 11:38:28 +0100 Subject: Flesh out EllipticCurveSignatureAlgorithm --- docs/hazmat/primitives/interfaces.rst | 87 +++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 6ec6de62..e53c6099 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -483,6 +483,54 @@ Asymmetric interfaces The bit length of the curves base point. +.. class:: EllipticCurveSignatureAlgorithm + + .. versionadded:: 0.4 + + A signature algorithm for use with elliptic curve keys. + + .. method:: signer(private_key, algorithm, backend) + + Sign data which can be verified later by others using the public key. + + :param private_key: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKey` + provider. + + :param algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :returns: + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` + + .. method:: verifier(public_key, algorithm, backend) + + Verify data was signed by the private key associated with this public + key. + + :param bytes signature: The signature to verify. + + :param public_key: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` + provider. + + :param algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :returns: + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` + + .. class:: EllipticCurvePrivateKey .. versionadded:: 0.4 @@ -490,6 +538,25 @@ Asymmetric interfaces An elliptic curve private key for use with an algorithm such as `ECDSA`_ or `EdDSA`_. + .. classmethod:: signer(signature_algorithm, digest_algorithm, backend) + + Sign data which can be verified later by others using the public key. + + :param signature_algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` + provider. + + :param digest_algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :returns: + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` + .. attribute:: curve :type: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurve` @@ -533,6 +600,26 @@ Asymmetric interfaces An elliptic curve public key. + .. classmethod:: verifier(signature_algorithm, digest_algorithm, backend) + + Verify data was signed by the private key associated with this public + key. + + :param signature_algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` + provider. + + :param digest_algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :returns: + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` + .. attribute:: curve :type: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurve` -- cgit v1.2.3 From 80228a19eaeebb3d9f46faccc2679ba0ef2b09ae Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sun, 20 Apr 2014 16:44:26 +0100 Subject: Update docs --- docs/hazmat/primitives/interfaces.rst | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index e53c6099..d7f3298b 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -489,7 +489,13 @@ Asymmetric interfaces A signature algorithm for use with elliptic curve keys. - .. method:: signer(private_key, algorithm, backend) + .. attribute:: algorithm + + :type: :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + + The digest algorithm to be used with the signature scheme. + + .. method:: signer(private_key, backend) Sign data which can be verified later by others using the public key. @@ -497,10 +503,6 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKey` provider. - :param algorithm: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` - provider. - :param backend: A :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. @@ -508,7 +510,7 @@ Asymmetric interfaces :returns: :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` - .. method:: verifier(public_key, algorithm, backend) + .. method:: verifier(signature, public_key, backend) Verify data was signed by the private key associated with this public key. @@ -519,10 +521,6 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` provider. - :param algorithm: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` - provider. - :param backend: A :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. @@ -538,7 +536,7 @@ Asymmetric interfaces An elliptic curve private key for use with an algorithm such as `ECDSA`_ or `EdDSA`_. - .. classmethod:: signer(signature_algorithm, digest_algorithm, backend) + .. classmethod:: signer(signature_algorithm, backend) Sign data which can be verified later by others using the public key. @@ -546,10 +544,6 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` provider. - :param digest_algorithm: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` - provider. - :param backend: A :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. @@ -600,19 +594,17 @@ Asymmetric interfaces An elliptic curve public key. - .. classmethod:: verifier(signature_algorithm, digest_algorithm, backend) + .. classmethod:: verifier(signer, signature_algorithm, backend) Verify data was signed by the private key associated with this public key. + :param bytes signature: The signature to verify. + :param signature_algorithm: An instance of a :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` provider. - :param digest_algorithm: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` - provider. - :param backend: A :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. -- cgit v1.2.3 From 20c99038a184928282d5b0598e7c201c0b851851 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 3 May 2014 21:06:46 +0100 Subject: Bump to 0.5 --- docs/hazmat/primitives/interfaces.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index d7f3298b..97f89b28 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -465,7 +465,7 @@ Asymmetric interfaces .. class:: EllipticCurve - .. versionadded:: 0.4 + .. versionadded:: 0.5 A named elliptic curve. @@ -485,7 +485,7 @@ Asymmetric interfaces .. class:: EllipticCurveSignatureAlgorithm - .. versionadded:: 0.4 + .. versionadded:: 0.5 A signature algorithm for use with elliptic curve keys. @@ -531,7 +531,7 @@ Asymmetric interfaces .. class:: EllipticCurvePrivateKey - .. versionadded:: 0.4 + .. versionadded:: 0.5 An elliptic curve private key for use with an algorithm such as `ECDSA`_ or `EdDSA`_. @@ -590,7 +590,7 @@ Asymmetric interfaces .. class:: EllipticCurvePublicKey - .. versionadded:: 0.4 + .. versionadded:: 0.5 An elliptic curve public key. -- cgit v1.2.3 From b987a08652a8866c49325cd5f920b8674d934836 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 16 May 2014 21:24:35 +0100 Subject: Removed signer/verifier from signature algorithm --- docs/hazmat/primitives/interfaces.rst | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 97f89b28..9a957cc2 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -495,39 +495,6 @@ Asymmetric interfaces The digest algorithm to be used with the signature scheme. - .. method:: signer(private_key, backend) - - Sign data which can be verified later by others using the public key. - - :param private_key: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKey` - provider. - - :param backend: A - :class:`~cryptography.hazmat.backends.interfaces.RSABackend` - provider. - - :returns: - :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` - - .. method:: verifier(signature, public_key, backend) - - Verify data was signed by the private key associated with this public - key. - - :param bytes signature: The signature to verify. - - :param public_key: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` - provider. - - :param backend: A - :class:`~cryptography.hazmat.backends.interfaces.RSABackend` - provider. - - :returns: - :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` - .. class:: EllipticCurvePrivateKey -- cgit v1.2.3 From 23a6266ac6a763f07ce397af0c1957cc124e7f81 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 16 May 2014 22:43:40 +0100 Subject: Add docs for EC numbers --- docs/hazmat/primitives/asymmetric/ec.rst | 51 ++++++++++++++++++++++++++++++++ docs/hazmat/primitives/interfaces.rst | 30 ------------------- 2 files changed, 51 insertions(+), 30 deletions(-) create mode 100644 docs/hazmat/primitives/asymmetric/ec.rst (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst new file mode 100644 index 00000000..44c24d7f --- /dev/null +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -0,0 +1,51 @@ +.. hazmat:: + +Elliptic Curve +============== + +.. currentmodule:: cryptography.hazmat.primitives.asymmetric.ec + + +.. class:: EllipticCurvePrivateNumbers + + .. versionadded:: 0.5 + + The collection of integers that make up an EC private key. + + .. attribute:: public_numbers + + :type: :class:`~cryptography.hazmat.primitives.ec.EllipticCurvePublicNumbers` + + The :class:`EllipticCurvePublicNumbers` which makes up the EC public + key associated with this EC private key. + + .. attribute:: private_key + + :type: int + + The private key. + + +.. class:: EllipticCurvePublicNumbers + + .. versionadded:: 0.5 + + The collection of integers that make up an EC public key. + + .. attribute:: curve + + :type: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurve` + + The elliptic curve for this key. + + .. attribute:: x + + :type: int + + The affine x component of the public point used for verifying. + + .. attribute:: y + + :type: int + + The affine y component of the public point used for verifying. diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 9a957cc2..f4597fbf 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -524,30 +524,12 @@ Asymmetric interfaces The elliptic curve for this key. - .. attribute:: private_key - - :type: int - - The private key. - .. attribute:: key_size :type: int The bit length of the curves base point. - .. attribute:: x - - :type: int - - The affine x component of the public point used for verifying. - - .. attribute:: y - - :type: int - - The affine y component of the public point used for verifying. - .. method:: public_key() :return: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` @@ -585,18 +567,6 @@ Asymmetric interfaces The elliptic curve for this key. - .. attribute:: x - - :type: int - - The affine x component of the public point used for verifying. - - .. attribute:: y - - :type: int - - The affine y component of the public point used for verifying. - .. attribute:: key_size :type: int -- cgit v1.2.3 From 3d643c57c219d9560890381561d831b789305c3c Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 17 May 2014 16:59:58 +0100 Subject: Add __init__ arguments to docs --- docs/hazmat/primitives/asymmetric/ec.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst index 44c24d7f..4b0d30c5 100644 --- a/docs/hazmat/primitives/asymmetric/ec.rst +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -6,7 +6,7 @@ Elliptic Curve .. currentmodule:: cryptography.hazmat.primitives.asymmetric.ec -.. class:: EllipticCurvePrivateNumbers +.. class:: EllipticCurvePrivateNumbers(private_key, public_numbers) .. versionadded:: 0.5 @@ -26,7 +26,7 @@ Elliptic Curve The private key. -.. class:: EllipticCurvePublicNumbers +.. class:: EllipticCurvePublicNumbers(x, y, curve) .. versionadded:: 0.5 -- cgit v1.2.3 From 977b409ed8aa9c26b2e3a1bdb6147b7c4435c1be Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 17 May 2014 17:02:42 +0100 Subject: Remove key_size from EC keys docs --- docs/hazmat/primitives/interfaces.rst | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index f4597fbf..c5a430d2 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -524,12 +524,6 @@ Asymmetric interfaces The elliptic curve for this key. - .. attribute:: key_size - - :type: int - - The bit length of the curves base point. - .. method:: public_key() :return: :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey` @@ -567,12 +561,6 @@ Asymmetric interfaces The elliptic curve for this key. - .. attribute:: key_size - - :type: int - - The bit length of the curves base point. - .. class:: AsymmetricSignatureContext -- cgit v1.2.3 From 81ce8ef0ad52edac1d252c9bc7485c79ba2fcec9 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 17 May 2014 20:08:44 +0100 Subject: Add EC docs to the index --- docs/hazmat/primitives/asymmetric/index.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/asymmetric/index.rst b/docs/hazmat/primitives/asymmetric/index.rst index 047f9cb9..6a5228ba 100644 --- a/docs/hazmat/primitives/asymmetric/index.rst +++ b/docs/hazmat/primitives/asymmetric/index.rst @@ -7,6 +7,7 @@ Asymmetric algorithms :maxdepth: 1 dsa + ec rsa padding serialization -- cgit v1.2.3 From a264eccab51b57422b99bd12d58a3f2a3f15ac1c Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sun, 18 May 2014 15:31:56 +0100 Subject: Rename private_key to private_value --- docs/hazmat/primitives/asymmetric/ec.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst index 4b0d30c5..f88b965a 100644 --- a/docs/hazmat/primitives/asymmetric/ec.rst +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -6,7 +6,7 @@ Elliptic Curve .. currentmodule:: cryptography.hazmat.primitives.asymmetric.ec -.. class:: EllipticCurvePrivateNumbers(private_key, public_numbers) +.. class:: EllipticCurvePrivateNumbers(private_value, public_numbers) .. versionadded:: 0.5 @@ -19,11 +19,11 @@ Elliptic Curve The :class:`EllipticCurvePublicNumbers` which makes up the EC public key associated with this EC private key. - .. attribute:: private_key + .. attribute:: private_value :type: int - The private key. + The private value. .. class:: EllipticCurvePublicNumbers(x, y, curve) -- cgit v1.2.3 From 33c9d838bcc9ed04d184bf86702499aed6faceab Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 23 May 2014 21:31:51 +0100 Subject: Make EC key interfaces backend specific --- docs/hazmat/primitives/interfaces.rst | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index c5a430d2..c7b94ff2 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -503,7 +503,7 @@ Asymmetric interfaces An elliptic curve private key for use with an algorithm such as `ECDSA`_ or `EdDSA`_. - .. classmethod:: signer(signature_algorithm, backend) + .. classmethod:: signer(signature_algorithm) Sign data which can be verified later by others using the public key. @@ -511,10 +511,6 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` provider. - :param backend: A - :class:`~cryptography.hazmat.backends.interfaces.RSABackend` - provider. - :returns: :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` @@ -537,7 +533,7 @@ Asymmetric interfaces An elliptic curve public key. - .. classmethod:: verifier(signer, signature_algorithm, backend) + .. classmethod:: verifier(signer, signature_algorithm) Verify data was signed by the private key associated with this public key. @@ -548,10 +544,6 @@ Asymmetric interfaces :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurveSignatureAlgorithm` provider. - :param backend: A - :class:`~cryptography.hazmat.backends.interfaces.RSABackend` - provider. - :returns: :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` -- cgit v1.2.3 From 6e52674222a32d57a002137baa0d57df132b40d4 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 23 May 2014 22:06:06 +0100 Subject: Remove secp from spelling dictionary --- 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 c7b94ff2..0998a0ca 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -474,7 +474,7 @@ Asymmetric interfaces :type: string The name of the curve. Usually the name used for the ASN.1 OID such as - "secp256k1". + ``secp256k1``. .. attribute:: key_size -- cgit v1.2.3 From 24258ec6147e9c323b058ec7a165c52bc50ccdfc Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 24 May 2014 12:15:59 +0100 Subject: doc8 fixes --- docs/hazmat/primitives/interfaces.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/primitives') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 0998a0ca..e4e007ce 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -504,7 +504,7 @@ Asymmetric interfaces `EdDSA`_. .. classmethod:: signer(signature_algorithm) - + Sign data which can be verified later by others using the public key. :param signature_algorithm: An instance of a @@ -534,7 +534,7 @@ Asymmetric interfaces An elliptic curve public key. .. classmethod:: verifier(signer, signature_algorithm) - + Verify data was signed by the private key associated with this public key. -- cgit v1.2.3 From d436569bb729b97a856b0e69fcf7a9c09d298964 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Mon, 26 May 2014 09:25:25 +0100 Subject: Apostophe --- 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 e4e007ce..b2857f58 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -480,7 +480,7 @@ Asymmetric interfaces :type: int - The bit length of the curves base point. + The bit length of the curve's base point. .. class:: EllipticCurveSignatureAlgorithm -- cgit v1.2.3