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 "bcrypt.h". https://source.winehq.org/source/include/bcrypt.h

Implemented in "dlls/advapi32/crypt.c". https://source.winehq.org/source/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 Apr 2024.