| OLD | NEW |
| 1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | 4 |
| 5 #ifdef FREEBL_NO_DEPEND | 5 #ifdef FREEBL_NO_DEPEND |
| 6 #include "stubs.h" | 6 #include "stubs.h" |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "prerr.h" | 9 #include "prerr.h" |
| 10 #include "secerr.h" | 10 #include "secerr.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 #define addto64(sumhigh, sumlow, addend) \ | 252 #define addto64(sumhigh, sumlow, addend) \ |
| 253 sumlow += addend; if (sumlow < addend) ++sumhigh; | 253 sumlow += addend; if (sumlow < addend) ++sumhigh; |
| 254 #endif | 254 #endif |
| 255 | 255 |
| 256 #define MASK 0x00ff00ff | 256 #define MASK 0x00ff00ff |
| 257 #ifdef IS_LITTLE_ENDIAN | 257 #ifdef IS_LITTLE_ENDIAN |
| 258 #define lendian(i32) \ | 258 #define lendian(i32) \ |
| 259 (i32) | 259 (i32) |
| 260 #else | 260 #else |
| 261 #define lendian(i32) \ | 261 #define lendian(i32) \ |
| 262 » (tmp = i32 >> 16 | i32 << 16, (tmp & MASK) << 8 | tmp >> 8 & MASK) | 262 » (tmp = (i32 >> 16) | (i32 << 16), ((tmp & MASK) << 8) | ((tmp >> 8) & MA
SK)) |
| 263 #endif | 263 #endif |
| 264 | 264 |
| 265 #ifndef IS_LITTLE_ENDIAN | 265 #ifndef IS_LITTLE_ENDIAN |
| 266 | 266 |
| 267 #define lebytes(b4) \ | 267 #define lebytes(b4) \ |
| 268 ((b4)[3] << 24 | (b4)[2] << 16 | (b4)[1] << 8 | (b4)[0]) | 268 ((b4)[3] << 24 | (b4)[2] << 16 | (b4)[1] << 8 | (b4)[0]) |
| 269 | 269 |
| 270 static void | 270 static void |
| 271 md5_prep_state_le(MD5Context *cx) | 271 md5_prep_state_le(MD5Context *cx) |
| 272 { | 272 { |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 void MD5_Clone(MD5Context *dest, MD5Context *src) | 585 void MD5_Clone(MD5Context *dest, MD5Context *src) |
| 586 { | 586 { |
| 587 memcpy(dest, src, sizeof *dest); | 587 memcpy(dest, src, sizeof *dest); |
| 588 } | 588 } |
| 589 | 589 |
| 590 void | 590 void |
| 591 MD5_TraceState(MD5Context *cx) | 591 MD5_TraceState(MD5Context *cx) |
| 592 { | 592 { |
| 593 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); | 593 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); |
| 594 } | 594 } |
| OLD | NEW |