Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 26, 2024
1 parent 9faf6b6 commit de5a301
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 47 deletions.
7 changes: 7 additions & 0 deletions awscrt-stubs/crypto.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class RSAEncryptionAlgorithm(IntEnum):

class RSASignatureAlgorithm(IntEnum):
PKCS1_5_SHA256: int
PKCS1_5_SHA1: int
PSS_SHA256: int

class RSA(NativeResource):
Expand All @@ -40,6 +41,12 @@ class RSA(NativeResource):
def new_public_key_from_pem_data(
pem_data: Union[str, bytes, bytearray, memoryview],
) -> "RSA": ...
@staticmethod
def new_private_key_from_der_data(
der_data: Union[str, bytes, bytearray, memoryview],
) -> "RSA": ...
@staticmethod
def new_public_key_from_der_data(der_data: Union[bytes, bytearray, memoryview]) -> "RSA": ...
def encrypt(
self,
encryption_algorithm: RSAEncryptionAlgorithm,
Expand Down
Loading

0 comments on commit de5a301

Please sign in to comment.