diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-11-27 10:40:12 -1000 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-11-27 10:43:49 -1000 |
commit | aa7dacaf53e150d9d6e58224c46b88214f2957df (patch) | |
tree | 90b716eda89e7f94d65add0bceeb4e38011da3ee /docs/hazmat | |
parent | 65d054d1a9b8b122096d7994fc2fe675c06f423f (diff) | |
download | cryptography-aa7dacaf53e150d9d6e58224c46b88214f2957df.tar.gz cryptography-aa7dacaf53e150d9d6e58224c46b88214f2957df.tar.bz2 cryptography-aa7dacaf53e150d9d6e58224c46b88214f2957df.zip |
add encode_rfc6979_signature and refactor tests to use it
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/utils.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/utils.rst b/docs/hazmat/primitives/asymmetric/utils.rst index 9749b6d1..6b348801 100644 --- a/docs/hazmat/primitives/asymmetric/utils.rst +++ b/docs/hazmat/primitives/asymmetric/utils.rst @@ -14,3 +14,13 @@ Asymmetric Utilities :param bytes signature: The signature to decode. :returns: The decoded tuple ``(r, s)``. + +.. function:: encode_rfc6979_signature(r, s) + + Creates an :rfc:`6979` byte string from raw signature values. + + :param int r: The raw signature value ``r``. + + :param int s: The raw signature value ``s``. + + :return bytes: The encoded signature. |