aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/IO/PKCS8.pyi
blob: 135b6389295321165bb10328103d1fe5f05d8373 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typing import Dict, Tuple, Optional, Union, Callable

from Cryptodome.Util.asn1 import DerObject

def wrap(private_key: bytes,
         key_oid: str,
	 passphrase: Union[bytes, str] = ...,
	 protection: str = ...,
         prot_params: Dict = ...,
	 key_params: DerObject = ...,
	 randfunc: Optional[Callable[[int],str]]  = ...) -> bytes: ...


def unwrap(p8_private_key: bytes, passphrase: Optional[Union[bytes, str]] = ...) -> Tuple[str, bytes, Optional[bytes]]: ...