cryptography: Return RSAPrivateKeyWithSerialization from generate_private_key. (#3296)

The only extant implementation of generate_private_key returns this more specialized interface.
This commit is contained in:
Benjamin Peterson
2019-10-02 16:09:25 -07:00
committed by Sebastian Rittau
parent c38cf6736e
commit 9a1d205f34

View File

@@ -25,7 +25,7 @@ class RSAPublicKey:
RSAPublicKeyWithSerialization = RSAPublicKey
def generate_private_key(public_exponent: int, key_size: int, backend) -> RSAPrivateKey: ...
def generate_private_key(public_exponent: int, key_size: int, backend) -> RSAPrivateKeyWithSerialization: ...
def rsa_crt_iqmp(p: int, q: int) -> int: ...
def rsa_crt_dmp1(private_exponent: int, p: int) -> int: ...
def rsa_crt_dmq1(private_exponent: int, q: int) -> int: ...