diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-12 07:29:11 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-12 07:29:11 -0400 |
commit | 5ec74d1411e74dfb0aaaa04d52fba3672e4f189a (patch) | |
tree | 7f416dc9660826b61f63857945848aed1e0b0f42 /docs/hazmat/primitives/asymmetric/utils.rst | |
parent | 29629832963a512b02944a04de5840d516478396 (diff) | |
parent | 31c5c3376dee8342ccfdb3fadb481d3c4156382c (diff) | |
download | cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.tar.gz cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.tar.bz2 cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.zip |
Merge pull request #2250 from reaperhulk/fix-2246
resolve incorrect docs/naming around DSA (r, s) tuple encode/decode
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/utils.rst')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/utils.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/hazmat/primitives/asymmetric/utils.rst b/docs/hazmat/primitives/asymmetric/utils.rst index 7380f0b5..07883598 100644 --- a/docs/hazmat/primitives/asymmetric/utils.rst +++ b/docs/hazmat/primitives/asymmetric/utils.rst @@ -6,10 +6,11 @@ Asymmetric Utilities .. currentmodule:: cryptography.hazmat.primitives.asymmetric.utils -.. function:: decode_rfc6979_signature(signature) +.. function:: decode_dss_signature(signature) - Takes in :rfc:`6979` signatures generated by the DSA/ECDSA signers and - returns a tuple ``(r, s)``. + Takes in signatures generated by the DSA/ECDSA signers and returns a + tuple ``(r, s)``. These signatures are ASN.1 encoded ``Dss-Sig-Value`` + sequences (as defined in :rfc:`3279`) :param bytes signature: The signature to decode. @@ -17,9 +18,10 @@ Asymmetric Utilities :raises ValueError: Raised if the signature is malformed. -.. function:: encode_rfc6979_signature(r, s) +.. function:: encode_dss_signature(r, s) - Creates an :rfc:`6979` byte string from raw signature values. + Creates an ASN.1 encoded ``Dss-Sig-Value`` (as defined in :rfc:`3279`) from + raw ``r`` and ``s`` values. :param int r: The raw signature value ``r``. |