CryptImportKey(3w)

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

Defined in "wincrypt.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/advapi32/crypt.c".

Debug channel "crypt".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout