1 /* vim:set ts=2 sw=2 et cindent: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
16 * md4sum - computes the MD4 sum over the input buffer per RFC 1320
19 * buffer containing input data
21 * length of input buffer (number of bytes)
23 * 16-byte buffer that will contain the MD4 sum upon return
25 * NOTE: MD4 is superceded by MD5. do not use MD4 unless required by the
26 * protocol you are implementing (e.g., NTLM requires MD4).
28 * NOTE: this interface is designed for relatively small buffers. A streaming
29 * interface would make more sense if that were a requirement. Currently, this
30 * is good enough for the applications we care about.
32 void md4sum(const uint8_t* input
, uint32_t inputLen
, uint8_t* result
);