| OLD | NEW |
| 1 // This is mozilla/security/manager/ssl/src/md4.c, CVS rev. 1.1, with trivial | 1 // This is mozilla/security/manager/ssl/src/md4.c, 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 w2b(final + (n >= 56 ? 120 : 56), &inputLen, 4); | 173 w2b(final + (n >= 56 ? 120 : 56), &inputLen, 4); |
| 174 | 174 |
| 175 md4step(state, final); | 175 md4step(state, final); |
| 176 if (n >= 56) | 176 if (n >= 56) |
| 177 md4step(state, final + 64); | 177 md4step(state, final + 64); |
| 178 | 178 |
| 179 /* copy state to result */ | 179 /* copy state to result */ |
| 180 w2b(result, state, 16); | 180 w2b(result, state, 16); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace net::weak_crypto | 183 } // namespace weak_crypto |
| 184 } // namespace net | 184 } // namespace net |
| OLD | NEW |