← Files AgentBrokoARCHIVED FILE

.venv/Lib/site-packages/Crypto/IO/PKCS8.pyi

617 Bytes · Oct 3, 2026 · 06:34 UTC

↓ Download file

from typing import Tuple, Optional, Union, Callable
from typing_extensions import NotRequired

from Crypto.Util.asn1 import DerObject
from Crypto.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]]: ...

SHA-256: 17c9a6398cec2b74df62786b9a84553ecfe8660dbfbeec47663bbef0ebd8e167