.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SystemFunction004 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSystemFunction004\fR (ADVAPI32.@) .SH SYNOPSIS NTSTATUS SystemFunction004 ( const struct ustring* \fIin\fR, const struct ustring* \fIkey\fR, struct ustring* \fIout\fR ) .SH DESCRIPTION .PP Encrypts a block of data with \fBDES\fR \fIin\fR \fBECB\fR mode, preserving the length. .SH PARAMS data \fB[In]\fR data to encrypt. .PP \fIkey\fR \fB[In]\fR \fIkey\fR data (up to \fB7\fR bytes). .PP output \fB[Out]\fR buffer to receive encrypted data. .PP .SH RETURNS .PP \fBSuccess:\fR \fBSTATUS_SUCCESS\fR .PP \fBFailure:\fR \fBSTATUS_BUFFER_TOO_SMALL\fR if the output buffer is too small .PP \fBFailure:\fR \fBSTATUS_INVALID_PARAMETER_2\fR if the \fIkey\fR is zero length. .SH NOTES .PP Encrypt buffer size should be input size rounded up to \fB8\fR bytes plus an extra \fB8\fR bytes. .SH IMPLEMENTATION .PP Not declared \fIin\fR a Wine header. The function is either undocumented, or missing from Wine. .PP Implemented \fIin\fR \fB"dlls/advapi32/crypt_lmhash.c"\fR.