PyCRYPTPROV.CryptImportKey

PyCRYPTKEY = CryptImportKey(Data, PubKey , Flags )

Imports a key exported by PyCRYPTKEY::CryptExportKey

Parameters

Data : buffer

The key blob to be imported

PubKey=None : PyCRYPTKEY

Key to be used to decrypt the blob, not used for importing public keys

Flags=0 : int

Combination of CRYPT_EXPORTABLE, CRYPT_OAEP, CRYPT_NO_SALT, CRYPT_USER_PROTECTED