MCPcopy
hub / github.com/cyao2q/files / parseLoop

Function parseLoop

js/crypto-js.js:1381–1394  ·  view source on GitHub ↗
(base64Str, base64StrLength, reverseMap)

Source from the content-addressed store, hash-verified

1379 };
1380
1381 function parseLoop(base64Str, base64StrLength, reverseMap) {
1382 var words = [];
1383 var nBytes = 0;
1384 for (var i = 0; i < base64StrLength; i++) {
1385 if (i % 4) {
1386 var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
1387 var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
1388 var bitsCombined = bits1 | bits2;
1389 words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
1390 nBytes++;
1391 }
1392 }
1393 return WordArray.create(words, nBytes);
1394 }
1395 }());
1396
1397

Callers 1

crypto-js.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…