sha2_64bit.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. // Copyright 2014 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview Base class for the 64-bit SHA-2 cryptographic hashes.
  16. *
  17. * Variable names follow the notation in FIPS PUB 180-3:
  18. * http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf.
  19. *
  20. * This code borrows heavily from the 32-bit SHA2 implementation written by
  21. * Yue Zhang (zysxqn@).
  22. *
  23. * @author fy@google.com (Frank Yellin)
  24. */
  25. goog.provide('goog.crypt.Sha2_64bit');
  26. goog.require('goog.array');
  27. goog.require('goog.asserts');
  28. goog.require('goog.crypt.Hash');
  29. goog.require('goog.math.Long');
  30. /**
  31. * Constructs a SHA-2 64-bit cryptographic hash.
  32. * This class should not be used. Rather, one should use one of its
  33. * subclasses.
  34. * @constructor
  35. * @param {number} numHashBlocks The size of the output in 16-byte blocks
  36. * @param {!Array<number>} initHashBlocks The hash-specific initialization
  37. * vector, as a sequence of sixteen 32-bit numbers.
  38. * @extends {goog.crypt.Hash}
  39. * @struct
  40. */
  41. goog.crypt.Sha2_64bit = function(numHashBlocks, initHashBlocks) {
  42. goog.crypt.Sha2_64bit.base(this, 'constructor');
  43. /**
  44. * The number of bytes that are digested in each pass of this hasher.
  45. * @const {number}
  46. */
  47. this.blockSize = goog.crypt.Sha2_64bit.BLOCK_SIZE_;
  48. /**
  49. * A chunk holding the currently processed message bytes. Once the chunk has
  50. * {@code this.blocksize} bytes, we feed it into [@code computeChunk_}.
  51. * @private {!Uint8Array|!Array<number>}
  52. */
  53. this.chunk_ = goog.global['Uint8Array'] ? new Uint8Array(this.blockSize) :
  54. new Array(this.blockSize);
  55. /**
  56. * Current number of bytes in {@code this.chunk_}.
  57. * @private {number}
  58. */
  59. this.chunkBytes_ = 0;
  60. /**
  61. * Total number of bytes in currently processed message.
  62. * @private {number}
  63. */
  64. this.total_ = 0;
  65. /**
  66. * Holds the previous values of accumulated hash a-h in the
  67. * {@code computeChunk_} function.
  68. * @private {!Array<!goog.math.Long>}
  69. */
  70. this.hash_ = [];
  71. /**
  72. * The number of blocks of output produced by this hash function, where each
  73. * block is eight bytes long.
  74. * @private {number}
  75. */
  76. this.numHashBlocks_ = numHashBlocks;
  77. /**
  78. * Temporary array used in chunk computation. Allocate here as a
  79. * member rather than as a local within computeChunk_() as a
  80. * performance optimization to reduce the number of allocations and
  81. * reduce garbage collection.
  82. * @type {!Array<!goog.math.Long>}
  83. * @private
  84. */
  85. this.w_ = [];
  86. /**
  87. * The value to which {@code this.hash_} should be reset when this
  88. * Hasher is reset.
  89. * @private @const {!Array<!goog.math.Long>}
  90. */
  91. this.initHashBlocks_ = goog.crypt.Sha2_64bit.toLongArray_(initHashBlocks);
  92. /**
  93. * If true, we have taken the digest from this hasher, but we have not
  94. * yet reset it.
  95. *
  96. * @private {boolean}
  97. */
  98. this.needsReset_ = false;
  99. this.reset();
  100. };
  101. goog.inherits(goog.crypt.Sha2_64bit, goog.crypt.Hash);
  102. /**
  103. * The number of bytes that are digested in each pass of this hasher.
  104. * @private @const {number}
  105. */
  106. goog.crypt.Sha2_64bit.BLOCK_SIZE_ = 1024 / 8;
  107. /**
  108. * Contains data needed to pad messages less than {@code blocksize} bytes.
  109. * @private {!Array<number>}
  110. */
  111. goog.crypt.Sha2_64bit.PADDING_ = goog.array.concat(
  112. [0x80], goog.array.repeat(0, goog.crypt.Sha2_64bit.BLOCK_SIZE_ - 1));
  113. /**
  114. * Resets this hash function.
  115. * @override
  116. */
  117. goog.crypt.Sha2_64bit.prototype.reset = function() {
  118. this.chunkBytes_ = 0;
  119. this.total_ = 0;
  120. this.hash_ = goog.array.clone(this.initHashBlocks_);
  121. this.needsReset_ = false;
  122. };
  123. /** @override */
  124. goog.crypt.Sha2_64bit.prototype.update = function(message, opt_length) {
  125. var length = goog.isDef(opt_length) ? opt_length : message.length;
  126. // Make sure this hasher is usable.
  127. if (this.needsReset_) {
  128. throw Error('this hasher needs to be reset');
  129. }
  130. // Process the message from left to right up to |length| bytes.
  131. // When we get a 512-bit chunk, compute the hash of it and reset
  132. // this.chunk_. The message might not be multiple of 512 bits so we
  133. // might end up with a chunk that is less than 512 bits. We store
  134. // such partial chunk in chunk_ and it will be filled up later
  135. // in digest().
  136. var chunkBytes = this.chunkBytes_;
  137. // The input message could be either byte array or string.
  138. if (goog.isString(message)) {
  139. for (var i = 0; i < length; i++) {
  140. var b = message.charCodeAt(i);
  141. if (b > 255) {
  142. throw Error('Characters must be in range [0,255]');
  143. }
  144. this.chunk_[chunkBytes++] = b;
  145. if (chunkBytes == this.blockSize) {
  146. this.computeChunk_();
  147. chunkBytes = 0;
  148. }
  149. }
  150. } else if (goog.isArrayLike(message)) {
  151. for (var i = 0; i < length; i++) {
  152. var b = message[i];
  153. // Hack: b|0 coerces b to an integer, so the last part confirms that
  154. // b has no fractional part.
  155. if (!goog.isNumber(b) || b < 0 || b > 255 || b != (b | 0)) {
  156. throw Error('message must be a byte array');
  157. }
  158. this.chunk_[chunkBytes++] = b;
  159. if (chunkBytes == this.blockSize) {
  160. this.computeChunk_();
  161. chunkBytes = 0;
  162. }
  163. }
  164. } else {
  165. throw Error('message must be string or array');
  166. }
  167. // Record the current bytes in chunk to support partial update.
  168. this.chunkBytes_ = chunkBytes;
  169. // Record total message bytes we have processed so far.
  170. this.total_ += length;
  171. };
  172. /** @override */
  173. goog.crypt.Sha2_64bit.prototype.digest = function() {
  174. if (this.needsReset_) {
  175. throw Error('this hasher needs to be reset');
  176. }
  177. var totalBits = this.total_ * 8;
  178. // Append pad 0x80 0x00* until this.chunkBytes_ == 112
  179. if (this.chunkBytes_ < 112) {
  180. this.update(goog.crypt.Sha2_64bit.PADDING_, 112 - this.chunkBytes_);
  181. } else {
  182. // the rest of this block, plus 112 bytes of next block
  183. this.update(
  184. goog.crypt.Sha2_64bit.PADDING_,
  185. this.blockSize - this.chunkBytes_ + 112);
  186. }
  187. // Append # bits in the 64-bit big-endian format.
  188. for (var i = 127; i >= 112; i--) {
  189. this.chunk_[i] = totalBits & 255;
  190. totalBits /= 256; // Don't use bit-shifting here!
  191. }
  192. this.computeChunk_();
  193. // Finally, output the result digest.
  194. var n = 0;
  195. var digest = new Array(8 * this.numHashBlocks_);
  196. for (var i = 0; i < this.numHashBlocks_; i++) {
  197. var block = this.hash_[i];
  198. var high = block.getHighBits();
  199. var low = block.getLowBits();
  200. for (var j = 24; j >= 0; j -= 8) {
  201. digest[n++] = ((high >> j) & 255);
  202. }
  203. for (var j = 24; j >= 0; j -= 8) {
  204. digest[n++] = ((low >> j) & 255);
  205. }
  206. }
  207. // The next call to this hasher must be a reset
  208. this.needsReset_ = true;
  209. return digest;
  210. };
  211. /**
  212. * Updates this hash by processing the 1024-bit message chunk in this.chunk_.
  213. * @private
  214. */
  215. goog.crypt.Sha2_64bit.prototype.computeChunk_ = function() {
  216. var chunk = this.chunk_;
  217. var K_ = goog.crypt.Sha2_64bit.K_;
  218. // Divide the chunk into 16 64-bit-words.
  219. var w = this.w_;
  220. for (var i = 0; i < 16; i++) {
  221. var offset = i * 8;
  222. w[i] = new goog.math.Long(
  223. (chunk[offset + 4] << 24) | (chunk[offset + 5] << 16) |
  224. (chunk[offset + 6] << 8) | (chunk[offset + 7]),
  225. (chunk[offset] << 24) | (chunk[offset + 1] << 16) |
  226. (chunk[offset + 2] << 8) | (chunk[offset + 3]));
  227. }
  228. // Extend the w[] array to be the number of rounds.
  229. for (var i = 16; i < 80; i++) {
  230. var s0 = this.sigma0_(w[i - 15]);
  231. var s1 = this.sigma1_(w[i - 2]);
  232. w[i] = this.sum_(w[i - 16], w[i - 7], s0, s1);
  233. }
  234. var a = this.hash_[0];
  235. var b = this.hash_[1];
  236. var c = this.hash_[2];
  237. var d = this.hash_[3];
  238. var e = this.hash_[4];
  239. var f = this.hash_[5];
  240. var g = this.hash_[6];
  241. var h = this.hash_[7];
  242. for (var i = 0; i < 80; i++) {
  243. var S0 = this.Sigma0_(a);
  244. var maj = this.majority_(a, b, c);
  245. var t2 = S0.add(maj);
  246. var S1 = this.Sigma1_(e);
  247. var ch = this.choose_(e, f, g);
  248. var t1 = this.sum_(h, S1, ch, K_[i], w[i]);
  249. h = g;
  250. g = f;
  251. f = e;
  252. e = d.add(t1);
  253. d = c;
  254. c = b;
  255. b = a;
  256. a = t1.add(t2);
  257. }
  258. this.hash_[0] = this.hash_[0].add(a);
  259. this.hash_[1] = this.hash_[1].add(b);
  260. this.hash_[2] = this.hash_[2].add(c);
  261. this.hash_[3] = this.hash_[3].add(d);
  262. this.hash_[4] = this.hash_[4].add(e);
  263. this.hash_[5] = this.hash_[5].add(f);
  264. this.hash_[6] = this.hash_[6].add(g);
  265. this.hash_[7] = this.hash_[7].add(h);
  266. };
  267. /**
  268. * Calculates the SHA2 64-bit sigma0 function.
  269. * rotateRight(value, 1) ^ rotateRight(value, 8) ^ (value >>> 7)
  270. *
  271. * @private
  272. * @param {!goog.math.Long} value
  273. * @return {!goog.math.Long}
  274. */
  275. goog.crypt.Sha2_64bit.prototype.sigma0_ = function(value) {
  276. var valueLow = value.getLowBits();
  277. var valueHigh = value.getHighBits();
  278. // Implementation note: We purposely do not use the shift operations defined
  279. // in goog.math.Long. Inlining the code for specific values of shifting and
  280. // not generating the intermediate results doubles the speed of this code.
  281. var low = (valueLow >>> 1) ^ (valueHigh << 31) ^ (valueLow >>> 8) ^
  282. (valueHigh << 24) ^ (valueLow >>> 7) ^ (valueHigh << 25);
  283. var high = (valueHigh >>> 1) ^ (valueLow << 31) ^ (valueHigh >>> 8) ^
  284. (valueLow << 24) ^ (valueHigh >>> 7);
  285. return new goog.math.Long(low, high);
  286. };
  287. /**
  288. * Calculates the SHA2 64-bit sigma1 function.
  289. * rotateRight(value, 19) ^ rotateRight(value, 61) ^ (value >>> 6)
  290. *
  291. * @private
  292. * @param {!goog.math.Long} value
  293. * @return {!goog.math.Long}
  294. */
  295. goog.crypt.Sha2_64bit.prototype.sigma1_ = function(value) {
  296. var valueLow = value.getLowBits();
  297. var valueHigh = value.getHighBits();
  298. // Implementation note: See _sigma0() above
  299. var low = (valueLow >>> 19) ^ (valueHigh << 13) ^ (valueHigh >>> 29) ^
  300. (valueLow << 3) ^ (valueLow >>> 6) ^ (valueHigh << 26);
  301. var high = (valueHigh >>> 19) ^ (valueLow << 13) ^ (valueLow >>> 29) ^
  302. (valueHigh << 3) ^ (valueHigh >>> 6);
  303. return new goog.math.Long(low, high);
  304. };
  305. /**
  306. * Calculates the SHA2 64-bit Sigma0 function.
  307. * rotateRight(value, 28) ^ rotateRight(value, 34) ^ rotateRight(value, 39)
  308. *
  309. * @private
  310. * @param {!goog.math.Long} value
  311. * @return {!goog.math.Long}
  312. */
  313. goog.crypt.Sha2_64bit.prototype.Sigma0_ = function(value) {
  314. var valueLow = value.getLowBits();
  315. var valueHigh = value.getHighBits();
  316. // Implementation note: See _sigma0() above
  317. var low = (valueLow >>> 28) ^ (valueHigh << 4) ^ (valueHigh >>> 2) ^
  318. (valueLow << 30) ^ (valueHigh >>> 7) ^ (valueLow << 25);
  319. var high = (valueHigh >>> 28) ^ (valueLow << 4) ^ (valueLow >>> 2) ^
  320. (valueHigh << 30) ^ (valueLow >>> 7) ^ (valueHigh << 25);
  321. return new goog.math.Long(low, high);
  322. };
  323. /**
  324. * Calculates the SHA2 64-bit Sigma1 function.
  325. * rotateRight(value, 14) ^ rotateRight(value, 18) ^ rotateRight(value, 41)
  326. *
  327. * @private
  328. * @param {!goog.math.Long} value
  329. * @return {!goog.math.Long}
  330. */
  331. goog.crypt.Sha2_64bit.prototype.Sigma1_ = function(value) {
  332. var valueLow = value.getLowBits();
  333. var valueHigh = value.getHighBits();
  334. // Implementation note: See _sigma0() above
  335. var low = (valueLow >>> 14) ^ (valueHigh << 18) ^ (valueLow >>> 18) ^
  336. (valueHigh << 14) ^ (valueHigh >>> 9) ^ (valueLow << 23);
  337. var high = (valueHigh >>> 14) ^ (valueLow << 18) ^ (valueHigh >>> 18) ^
  338. (valueLow << 14) ^ (valueLow >>> 9) ^ (valueHigh << 23);
  339. return new goog.math.Long(low, high);
  340. };
  341. /**
  342. * Calculates the SHA-2 64-bit choose function.
  343. *
  344. * This function uses {@code value} as a mask to choose bits from either
  345. * {@code one} if the bit is set or {@code two} if the bit is not set.
  346. *
  347. * @private
  348. * @param {!goog.math.Long} value
  349. * @param {!goog.math.Long} one
  350. * @param {!goog.math.Long} two
  351. * @return {!goog.math.Long}
  352. */
  353. goog.crypt.Sha2_64bit.prototype.choose_ = function(value, one, two) {
  354. var valueLow = value.getLowBits();
  355. var valueHigh = value.getHighBits();
  356. return new goog.math.Long(
  357. (valueLow & one.getLowBits()) | (~valueLow & two.getLowBits()),
  358. (valueHigh & one.getHighBits()) | (~valueHigh & two.getHighBits()));
  359. };
  360. /**
  361. * Calculates the SHA-2 64-bit majority function.
  362. * This function returns, for each bit position, the bit held by the majority
  363. * of its three arguments.
  364. *
  365. * @private
  366. * @param {!goog.math.Long} one
  367. * @param {!goog.math.Long} two
  368. * @param {!goog.math.Long} three
  369. * @return {!goog.math.Long}
  370. */
  371. goog.crypt.Sha2_64bit.prototype.majority_ = function(one, two, three) {
  372. return new goog.math.Long(
  373. (one.getLowBits() & two.getLowBits()) |
  374. (two.getLowBits() & three.getLowBits()) |
  375. (one.getLowBits() & three.getLowBits()),
  376. (one.getHighBits() & two.getHighBits()) |
  377. (two.getHighBits() & three.getHighBits()) |
  378. (one.getHighBits() & three.getHighBits()));
  379. };
  380. /**
  381. * Adds two or more goog.math.Long values.
  382. *
  383. * @private
  384. * @param {!goog.math.Long} one first summand
  385. * @param {!goog.math.Long} two second summand
  386. * @param {...goog.math.Long} var_args more arguments to sum
  387. * @return {!goog.math.Long} The resulting sum.
  388. */
  389. goog.crypt.Sha2_64bit.prototype.sum_ = function(one, two, var_args) {
  390. // The low bits may be signed, but they represent a 32-bit unsigned quantity.
  391. // We must be careful to normalize them.
  392. // This doesn't matter for the high bits.
  393. // Implementation note: Performance testing shows that this method runs
  394. // fastest when the first two arguments are pulled out of the loop.
  395. var low = (one.getLowBits() ^ 0x80000000) + (two.getLowBits() ^ 0x80000000);
  396. var high = one.getHighBits() + two.getHighBits();
  397. for (var i = arguments.length - 1; i >= 2; --i) {
  398. low += arguments[i].getLowBits() ^ 0x80000000;
  399. high += arguments[i].getHighBits();
  400. }
  401. // Because of the ^0x80000000, each value we added is 0x80000000 too small.
  402. // Add arguments.length * 0x80000000 to the current sum. We can do this
  403. // quickly by adding 0x80000000 to low when the number of arguments is
  404. // odd, and adding (number of arguments) >> 1 to high.
  405. if (arguments.length & 1) {
  406. low += 0x80000000;
  407. }
  408. high += arguments.length >> 1;
  409. // If low is outside the range [0, 0xFFFFFFFF], its overflow or underflow
  410. // should be added to high. We don't actually need to modify low or
  411. // normalize high because the goog.math.Long constructor already does that.
  412. high += Math.floor(low / 0x100000000);
  413. return new goog.math.Long(low, high);
  414. };
  415. /**
  416. * Converts an array of 32-bit integers into an array of goog.math.Long
  417. * elements.
  418. *
  419. * @private
  420. * @param {!Array<number>} values An array of 32-bit numbers. Its length
  421. * must be even. Each pair of numbers represents a 64-bit integer
  422. * in big-endian order
  423. * @return {!Array<!goog.math.Long>}
  424. */
  425. goog.crypt.Sha2_64bit.toLongArray_ = function(values) {
  426. goog.asserts.assert(values.length % 2 == 0);
  427. var result = [];
  428. for (var i = 0; i < values.length; i += 2) {
  429. result.push(new goog.math.Long(values[i + 1], values[i]));
  430. }
  431. return result;
  432. };
  433. /**
  434. * Fixed constants used in SHA-512 variants.
  435. *
  436. * These values are from Section 4.2.3 of
  437. * http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
  438. * @const
  439. * @private {!Array<!goog.math.Long>}
  440. */
  441. goog.crypt.Sha2_64bit.K_ = goog.crypt.Sha2_64bit.toLongArray_([
  442. 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd, 0xb5c0fbcf, 0xec4d3b2f,
  443. 0xe9b5dba5, 0x8189dbbc, 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
  444. 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118, 0xd807aa98, 0xa3030242,
  445. 0x12835b01, 0x45706fbe, 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
  446. 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1, 0x9bdc06a7, 0x25c71235,
  447. 0xc19bf174, 0xcf692694, 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
  448. 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65, 0x2de92c6f, 0x592b0275,
  449. 0x4a7484aa, 0x6ea6e483, 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
  450. 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210, 0xb00327c8, 0x98fb213f,
  451. 0xbf597fc7, 0xbeef0ee4, 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
  452. 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70, 0x27b70a85, 0x46d22ffc,
  453. 0x2e1b2138, 0x5c26c926, 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
  454. 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8, 0x81c2c92e, 0x47edaee6,
  455. 0x92722c85, 0x1482353b, 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
  456. 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30, 0xd192e819, 0xd6ef5218,
  457. 0xd6990624, 0x5565a910, 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
  458. 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53, 0x2748774c, 0xdf8eeb99,
  459. 0x34b0bcb5, 0xe19b48a8, 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
  460. 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3, 0x748f82ee, 0x5defb2fc,
  461. 0x78a5636f, 0x43172f60, 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
  462. 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9, 0xbef9a3f7, 0xb2c67915,
  463. 0xc67178f2, 0xe372532b, 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
  464. 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178, 0x06f067aa, 0x72176fba,
  465. 0x0a637dc5, 0xa2c898a6, 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
  466. 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493, 0x3c9ebe0a, 0x15c9bebc,
  467. 0x431d67c4, 0x9c100d4c, 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
  468. 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
  469. ]);