aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-15 18:57:11 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-15 18:57:11 -0800
commitc5b0aa06a7cc843578523acb847646f3881df27f (patch)
treee663368d48377c6c61a264a9071734acfd5795fe /docs
parent1deb6872567a76a547274737b3d6348940d15e8b (diff)
parentb557045ae353e98e869088714e4f433383f87ce5 (diff)
downloadcryptography-c5b0aa06a7cc843578523acb847646f3881df27f.tar.gz
cryptography-c5b0aa06a7cc843578523acb847646f3881df27f.tar.bz2
cryptography-c5b0aa06a7cc843578523acb847646f3881df27f.zip
Merge pull request #605 from reaperhulk/add-crt-coefficients
Add RSA CRT Coefficients
Diffstat (limited to 'docs')
-rw-r--r--docs/hazmat/primitives/interfaces.rst24
-rw-r--r--docs/hazmat/primitives/rsa.rst3
2 files changed, 25 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index cbca5ed6..df17e59d 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -160,6 +160,27 @@ Asymmetric Interfaces
The private exponent. Alias for :attr:`private_exponent`.
+ .. attribute:: dmp1
+
+ :type: int
+
+ A `Chinese remainder theorem`_ coefficient used to speed up RSA
+ operations. Calculated as: d mod (p-1)
+
+ .. attribute:: dmq1
+
+ :type: int
+
+ A `Chinese remainder theorem`_ coefficient used to speed up RSA
+ operations. Calculated as: d mod (q-1)
+
+ .. attribute:: iqmp
+
+ :type: int
+
+ A `Chinese remainder theorem`_ coefficient used to speed up RSA
+ operations. Calculated as: q\ :sup:`-1` mod p
+
.. attribute:: n
:type: int
@@ -279,4 +300,5 @@ Key Derivation Functions
something like checking whether a user's password attempt matches the
stored derived key.
-.. _`RSA`: http://en.wikipedia.org/wiki/RSA_(cryptosystem)
+.. _`RSA`: https://en.wikipedia.org/wiki/RSA_(cryptosystem)
+.. _`Chinese remainder theorem`: https://en.wikipedia.org/wiki/Chinese_remainder_theorem
diff --git a/docs/hazmat/primitives/rsa.rst b/docs/hazmat/primitives/rsa.rst
index 2875b209..e7ec4749 100644
--- a/docs/hazmat/primitives/rsa.rst
+++ b/docs/hazmat/primitives/rsa.rst
@@ -7,7 +7,8 @@ RSA
`RSA`_ is a `public-key`_ algorithm for encrypting and signing messages.
-.. class:: RSAPrivateKey(p, q, private_exponent, public_exponent, modulus)
+.. class:: RSAPrivateKey(p, q, private_exponent, dmp1, dmq1, iqmp,
+ public_exponent, modulus)
.. versionadded:: 0.2