PKCS8.pyi 474 B

1234567891011121314
  1. from typing import Dict, Tuple, Optional, Union, Callable
  2. from tls.Crypto.Util.asn1 import DerObject
  3. def wrap(private_key: bytes,
  4. key_oid: str,
  5. passphrase: Union[bytes, str] = ...,
  6. protection: str = ...,
  7. prot_params: Dict = ...,
  8. key_params: DerObject = ...,
  9. randfunc: Optional[Callable[[int],str]] = ...) -> bytes: ...
  10. def unwrap(p8_private_key: bytes, passphrase: Optional[Union[bytes, str]] = ...) -> Tuple[str, bytes, Optional[bytes]]: ...