SystemFunction004(3w)

SystemFunction0043w

Usage

NTSTATUS SystemFunction004
(
const struct ustring* in,
const struct ustring* key,
struct ustring* out
)

Overview

Encrypts a block of data with DES in ECB mode, preserving the length.

Params

data [In] data to encrypt.

key [In] key data (up to 7 bytes).

output [Out] buffer to receive encrypted data.

Returns

Success: STATUS_SUCCESS

Failure: STATUS_BUFFER_TOO_SMALL if the output buffer is too small

Failure: STATUS_INVALID_PARAMETER_2 if the key is zero length.

Notes

Encrypt buffer size should be input size rounded up to 8 bytes plus an extra 8 bytes.

Implementation

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in "dlls/advapi32/crypt_lmhash.c".

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.