pkcs1_15.pyi 532 B

123456789101112131415
  1. from types import ModuleType
  2. from typing import Optional
  3. from Cryptodome.PublicKey.RSA import RsaKey
  4. class PKCS115_SigScheme:
  5. def __init__(self, rsa_key: RsaKey) -> None: ...
  6. def can_sign(self) -> bool: ...
  7. def sign(self, msg_hash: ModuleType) -> bytes: ...
  8. def verify(self, msg_hash: ModuleType, signature: bytes) -> None: ...
  9. def _EMSA_PKCS1_V1_5_ENCODE(msg_hash: ModuleType, emLen: int, with_hash_parameters: Optional[bool]=True) -> bytes: ...
  10. def new(rsa_key: RsaKey) -> PKCS115_SigScheme: ...