NAME

CryptImportKey  (ADVAPI32.@)

SYNOPSIS

 BOOL CryptImportKey
 (
  HCRYPTPROV  hProv,
  const BYTE* pbData,
  DWORD       dwDataLen,
  HCRYPTKEY   hPubKey,
  DWORD       dwFlags,
  HCRYPTKEY*  phKey
 )

DESCRIPTION

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 "include/wincrypt.h". gitlab.winehq.org/wine/wine/blob/master/include/wincrypt.h

Implemented in "dlls/advapi32/crypt.c". gitlab.winehq.org/wine/wine/blob/master/dlls/advapi32/crypt.c

Debug channel "crypt".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.