From 61f139189eaa24d826c7d6fed8f28e72d3baf424 Mon Sep 17 00:00:00 2001 From: Artjoms Iskovs Date: Sat, 21 Dec 2019 20:38:16 +0000 Subject: [PATCH] Fix RSAPublicNumbers stub (#3505) `RSAPublicNumbers` is supposed to have an exponent `e` and modulus `n` instead of `p` and `q` (typo?) --- .../2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi index 30604dbed..3eebe53cc 100644 --- a/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi +++ b/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi @@ -73,7 +73,7 @@ class RSAPrivateNumbers(object): class RSAPublicNumbers(object): def __init__(self, e: int, n: int) -> None: ... @property - def p(self) -> int: ... + def e(self) -> int: ... @property - def q(self) -> int: ... + def n(self) -> int: ... def public_key(self, backend) -> RSAPublicKey: ...