OLD | NEW |
1 // This is mozilla/security/manager/ssl/src/md4.h, CVS rev. 1.1, with trivial | 1 // This is mozilla/security/manager/ssl/src/md4.h, CVS rev. 1.1, with trivial |
2 // changes to port it to our source tree. | 2 // changes to port it to our source tree. |
3 // | 3 // |
4 // WARNING: MD4 is cryptographically weak. Do not use MD4 except in NTLM | 4 // WARNING: MD4 is cryptographically weak. Do not use MD4 except in NTLM |
5 // authentication. | 5 // authentication. |
6 | 6 |
7 /* vim:set ts=2 sw=2 et cindent: */ | 7 /* vim:set ts=2 sw=2 et cindent: */ |
8 /* ***** BEGIN LICENSE BLOCK ***** | 8 /* ***** BEGIN LICENSE BLOCK ***** |
9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
10 * | 10 * |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 * @param result | 59 * @param result |
60 * 16-byte buffer that will contain the MD4 sum upon return | 60 * 16-byte buffer that will contain the MD4 sum upon return |
61 * | 61 * |
62 * NOTE: MD4 is superceded by MD5. do not use MD4 unless required by the | 62 * NOTE: MD4 is superceded by MD5. do not use MD4 unless required by the |
63 * protocol you are implementing (e.g., NTLM requires MD4). | 63 * protocol you are implementing (e.g., NTLM requires MD4). |
64 * | 64 * |
65 * NOTE: this interface is designed for relatively small buffers. A streaming | 65 * NOTE: this interface is designed for relatively small buffers. A streaming |
66 * interface would make more sense if that were a requirement. Currently, this | 66 * interface would make more sense if that were a requirement. Currently, this |
67 * is good enough for the applications we care about. | 67 * is good enough for the applications we care about. |
68 */ | 68 */ |
69 void MD4Sum(const uint8 *input, uint32 inputLen, uint8 *result); | 69 void MD4Sum(const uint8* input, uint32 inputLen, uint8* result); |
70 | 70 |
71 } // namespace net::weak_crypto | 71 } // namespace net::weak_crypto |
72 } // namespace net | 72 } // namespace net |
73 | 73 |
74 #endif // NET_HTTP_MD4_H_ | 74 #endif // NET_HTTP_MD4_H_ |
OLD | NEW |