From aa7dacaf53e150d9d6e58224c46b88214f2957df Mon Sep 17 00:00:00 2001
From: Paul Kehrer <paul.l.kehrer@gmail.com>
Date: Thu, 27 Nov 2014 10:40:12 -1000
Subject: add encode_rfc6979_signature and refactor tests to use it

---
 docs/hazmat/primitives/asymmetric/utils.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'docs/hazmat')

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.
-- 
cgit v1.2.3