CryptImportKey3w
Usage
BOOL CryptImportKey
(
HCRYPTPROV hProv,
CONST BYTE* pbData,
DWORD dwDataLen,
HCRYPTKEY hPubKey,
DWORD dwFlags,
HCRYPTKEY* phKey
)
Overview
Transfer a cryptographic key from a key BLOB into a cryptographic service provider (CSP).
Params
hProv [In] Handle of a CSP.
pbData [In] Contains the key to be imported.
dwDataLen [In] Length of the key.
hPubKey [In] Cryptographic key that decrypts pdData.
dwFlags [In] Used only with a public/private key pair.
phKey [Out] Imported key.
Returns
Success: TRUE
Failure: FALSE
Implementation
Declared in "wincrypt.h".
Implemented in "dlls/advapi32/crypt.c".
Debug channel "crypt".
Releases
4 releases since Debian 4.0 (Etch); the text changed 3 times.