From bfd374469ba7a91969fff03285fccdd0b2f9e759 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 22 Jun 2016 13:16:57 +0200 Subject: Use `d` instead of `private_exponent` for consistency (#2991) True story: I used `e` instead of `d` because it seemed more closely related to `e`. Should have looked it up, of course... but the docs could be better. --- src/cryptography/hazmat/primitives/asymmetric/rsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cryptography/hazmat/primitives/asymmetric/rsa.py b/src/cryptography/hazmat/primitives/asymmetric/rsa.py index 2cb89515..d78b1b41 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/rsa.py +++ b/src/cryptography/hazmat/primitives/asymmetric/rsa.py @@ -199,7 +199,7 @@ def rsa_crt_iqmp(p, q): def rsa_crt_dmp1(private_exponent, p): """ Compute the CRT private_exponent % (p - 1) value from the RSA - private_exponent and p. + private_exponent (d) and p. """ return private_exponent % (p - 1) @@ -207,7 +207,7 @@ def rsa_crt_dmp1(private_exponent, p): def rsa_crt_dmq1(private_exponent, q): """ Compute the CRT private_exponent % (q - 1) value from the RSA - private_exponent and q. + private_exponent (d) and q. """ return private_exponent % (q - 1) -- cgit v1.2.3