blob: c8d0c104f84af92de04829a5875508b645822b07 (
plain) (
tree)
|
|
from typing import Tuple, Optional, Union, Callable
from typing_extensions import NotRequired
from Cryptodome.Util.asn1 import DerObject
from Cryptodome.IO._PBES import ProtParams
def wrap(private_key: bytes,
key_oid: str,
passphrase: Union[bytes, str] = ...,
protection: str = ...,
prot_params: Optional[ProtParams] = ...,
key_params: Optional[DerObject] = ...,
randfunc: Optional[Callable[[int], str]] = ...) -> bytes: ...
def unwrap(p8_private_key: bytes, passphrase: Optional[Union[bytes, str]] = ...) -> Tuple[str, bytes, Optional[bytes]]: ...
|