CryptEncrypt(3w)

CryptEncrypt3w

Usage

BOOL CryptEncrypt
(
HCRYPTKEY hKey,
HCRYPTHASH hHash,
BOOL Final,
DWORD dwFlags,
BYTE* pbData,
DWORD* pdwDataLen,
DWORD dwBufLen
)

Overview

Encrypts data.

Params

hKey [In] Handle to the encryption key.

hHash [In] Handle to a hash object.

Final [In] TRUE if this is the last section to encrypt.

dwFlags [In] Can be CRYPT_OAEP.

pbData [In/Out] Data to be encrypted. Contains encrypted data after call.

pdwDataLen [In/Out] Length of the data to encrypt. Contains the length of the encrypted data after call.

dwBufLen [In] Length of the input pbData buffer.

Returns

Success: TRUE

Failure: FALSE.

Notes

If pbData is NULL, CryptEncrypt determines stores the number of bytes required for the returned data in pdwDataLen.

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.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.