.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CryptEncrypt 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCryptEncrypt\fR (ADVAPI32.@) .SH SYNOPSIS BOOL CryptEncrypt ( HCRYPTKEY \fIhKey\fR, HCRYPTHASH \fIhHash\fR, BOOL \fIFinal\fR, DWORD \fIdwFlags\fR, BYTE* \fIpbData\fR, DWORD* \fIpdwDataLen\fR, DWORD \fIdwBufLen\fR ) .SH DESCRIPTION .PP Encrypts data. .SH PARAMS \fIhKey\fR \fB[In]\fR Handle to the encryption key. .PP \fIhHash\fR \fB[In]\fR Handle to a hash object. .PP \fIFinal\fR \fB[In]\fR \fBTRUE\fR if this is the last section to encrypt. .PP \fIdwFlags\fR \fB[In]\fR Can be \fBCRYPT_OAEP\fR. .PP \fIpbData\fR \fB[In/Out]\fR Data to be encrypted. Contains encrypted data after call. .PP \fIpdwDataLen\fR \fB[In/Out]\fR Length of the data to encrypt. Contains the length of the encrypted data after call. .PP \fIdwBufLen\fR \fB[In]\fR Length of the input \fIpbData\fR buffer. .PP .SH RETURNS .PP \fBSuccess:\fR \fBTRUE\fR .PP \fBFailure:\fR \fBFALSE\fR. .SH NOTES .PP If \fIpbData\fR is \fBNULL\fR, CryptEncrypt determines stores the number of bytes required for the returned data in \fIpdwDataLen\fR. .SH IMPLEMENTATION .PP Declared in \fB"wincrypt.h"\fR. .PP Implemented in \fB"dlls/advapi32/crypt.c"\fR. .PP Debug channel \fB"crypt"\fR.