| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 * | 6 * |
| 7 * The following code is based on the description in RFC 1321. | 7 * The following code is based on the description in RFC 1321. |
| 8 * http://www.ietf.org/rfc/rfc1321.txt | 8 * http://www.ietf.org/rfc/rfc1321.txt |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 #endif | 243 #endif |
| 244 for (size_t i = 0, j = 0; j < 64; i++, j += 4) { | 244 for (size_t i = 0, j = 0; j < 64; i++, j += 4) { |
| 245 storage[i] = ((uint32_t)input[j ]) | | 245 storage[i] = ((uint32_t)input[j ]) | |
| 246 (((uint32_t)input[j+1]) << 8) | | 246 (((uint32_t)input[j+1]) << 8) | |
| 247 (((uint32_t)input[j+2]) << 16) | | 247 (((uint32_t)input[j+2]) << 16) | |
| 248 (((uint32_t)input[j+3]) << 24); | 248 (((uint32_t)input[j+3]) << 24); |
| 249 } | 249 } |
| 250 return storage; | 250 return storage; |
| 251 #endif | 251 #endif |
| 252 } | 252 } |
| OLD | NEW |