Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
t.fail('Should not have called success callback');
t.end();
}, (err) =>{
got_called = true;
t.pass('Should be called after getting last trans or a shutdown');
t.equals(err.toString().indexOf('ChannelEventHub has been shutdown'), 7,'Check that we got the correct error message');
},
{startBlock: 1, endBlock: 'newest'}
);
t.pass('Successfully registered a newest playback transaction event');
} catch(error) {
t.fail( 'Failed - Should be able to register with newest replay');
}
t.equal(eh._ending_block_newest, true, 'Check the newest state');
t.equal(eh._allowRegistration, false, 'Check the replay state');
t.deepEqual(eh._ending_block_number, Long.MAX_VALUE, 'Check the replay end block');
// this should get some errors posted
eh.disconnect();
t.equal(got_called, true, 'Check that error callback was called');
try {
eh.unregisterTxEvent('transid');
eh.registerBlockEvent(() => {
t.fail('Should not have called success callback');
t.end();
}, () =>{
t.fail('Should not have called error callback');
t.end();
},
{startBlock: 10000000, endBlock: 'newest'}
);
packetType: Packet.IlpPacketType.Prepare,
amount: '0',
frames: [new Packet.StreamMaxMoneyFrame(123, Long.MAX_UNSIGNED_VALUE, 456)]
},
buffer: 'AQwBAAEAAQESDwF7CQEAAAAAAAAAAAIByA==',
decode_only: true
})
// The send_max is set to `Long.MAX_UNSIGNED_VALUE + 1`.
fixtures.push({
name: 'frame:stream_money_blocked:send_max:too_big',
packet: {
sequence: '0',
packetType: Packet.IlpPacketType.Prepare,
amount: '0',
frames: [new Packet.StreamMoneyBlockedFrame(123, Long.MAX_UNSIGNED_VALUE, 456)]
},
buffer: 'AQwBAAEAAQETDwF7CQEAAAAAAAAAAAIByA==',
decode_only: true
})
console.log(JSON.stringify(fixtures, null, ' '))
Long.fromString("61E48EAE27121A91", 16) /* 114 */, Long.fromString("4D62F7AD31859808", 16) /* 115 */,
Long.fromString("ECEBA345EF5CEAEB", 16) /* 116 */, Long.fromString("F5CEB25EBC9684CE", 16) /* 117 */,
Long.fromString("F633E20CB7F76221", 16) /* 118 */, Long.fromString("A32CDF06AB8293E4", 16) /* 119 */,
Long.fromString("985A202CA5EE2CA4", 16) /* 120 */, Long.fromString("CF0B8447CC8A8FB1", 16) /* 121 */,
Long.fromString("9F765244979859A3", 16) /* 122 */, Long.fromString("A8D516B1A1240017", 16) /* 123 */,
Long.fromString("0BD7BA3EBB5DC726", 16) /* 124 */, Long.fromString("E54BCA55B86ADB39", 16) /* 125 */,
Long.fromString("1D7A3AFD6C478063", 16) /* 126 */, Long.fromString("519EC608E7669EDD", 16) /* 127 */,
Long.fromString("0E5715A2D149AA23", 16) /* 128 */, Long.fromString("177D4571848FF194", 16) /* 129 */,
Long.fromString("EEB55F3241014C22", 16) /* 130 */, Long.fromString("0F5E5CA13A6E2EC2", 16) /* 131 */,
Long.fromString("8029927B75F5C361", 16) /* 132 */, Long.fromString("AD139FABC3D6E436", 16) /* 133 */,
Long.fromString("0D5DF1A94CCF402F", 16) /* 134 */, Long.fromString("3E8BD948BEA5DFC8", 16) /* 135 */,
Long.fromString("A5A0D357BD3FF77E", 16) /* 136 */, Long.fromString("A2D12E251F74F645", 16) /* 137 */,
Long.fromString("66FD9E525E81A082", 16) /* 138 */, Long.fromString("2E0C90CE7F687A49", 16) /* 139 */,
Long.fromString("C2E8BCBEBA973BC5", 16) /* 140 */, Long.fromString("000001BCE509745F", 16) /* 141 */,
Long.fromString("423777BBE6DAB3D6", 16) /* 142 */, Long.fromString("D1661C7EAEF06EB5", 16) /* 143 */,
Long.fromString("A1781F354DAACFD8", 16) /* 144 */, Long.fromString("2D11284A2B16AFFC", 16) /* 145 */,
Long.fromString("F1FC4F67FA891D1F", 16) /* 146 */, Long.fromString("73ECC25DCB920ADA", 16) /* 147 */,
Long.fromString("AE610C22C2A12651", 16) /* 148 */, Long.fromString("96E0A810D356B78A", 16) /* 149 */,
Long.fromString("5A9A381F2FE7870F", 16) /* 150 */, Long.fromString("D5AD62EDE94E5530", 16) /* 151 */,
Long.fromString("D225E5E8368D1427", 16) /* 152 */, Long.fromString("65977B70C7AF4631", 16) /* 153 */,
Long.fromString("99F889B2DE39D74F", 16) /* 154 */, Long.fromString("233F30BF54E1D143", 16) /* 155 */,
Long.fromString("9A9675D3D9A63C97", 16) /* 156 */, Long.fromString("5470554FF334F9A8", 16) /* 157 */,
Long.fromString("166ACB744A4F5688", 16) /* 158 */, Long.fromString("70C74CAAB2E4AEAD", 16) /* 159 */,
Long.fromString("F0D091646F294D12", 16) /* 160 */, Long.fromString("57B82A89684031D1", 16) /* 161 */,
Long.fromString("EFD95A5A61BE0B6B", 16) /* 162 */, Long.fromString("2FBD12E969F2F29A", 16) /* 163 */,
Long.fromString("9BD37013FEFF9FE8", 16) /* 164 */, Long.fromString("3F9B0404D6085A06", 16) /* 165 */,
Long.fromString("4940C1F3166CFE15", 16) /* 166 */, Long.fromString("09542C4DCDF3DEFB", 16) /* 167 */,
Long.fromString("B4C5218385CD5CE3", 16) /* 168 */, Long.fromString("C935B7DC4462A641", 16) /* 169 */,
Long.fromString("3417F8A68ED3B63F", 16) /* 170 */, Long.fromString("B80959295B215B40", 16) /* 171 */,
Long.fromString("F99CDAEF3B8C8572", 16) /* 172 */, Long.fromString("018C0614F8FCB95D", 16) /* 173 */,
Long.fromString("1B14ACCD1A3ACDF3", 16) /* 174 */, Long.fromString("84D471F200BB732D", 16) /* 175 */,
Long.fromString("C1A3110E95E8DA16", 16) /* 176 */, Long.fromString("430A7220BF1A82B8", 16) /* 177 */,
Long.fromString("6B4CB165F9CF0E5A", 16) /* 480 */, Long.fromString("43AA1C06A0ABFB4A", 16) /* 481 */,
Long.fromString("7F4DC26FF162796B", 16) /* 482 */, Long.fromString("6CBACC8E54ED9B0F", 16) /* 483 */,
Long.fromString("A6B7FFEFD2BB253E", 16) /* 484 */, Long.fromString("2E25BC95B0A29D4F", 16) /* 485 */,
Long.fromString("86D6A58BDEF1388C", 16) /* 486 */, Long.fromString("DED74AC576B6F054", 16) /* 487 */,
Long.fromString("8030BDBC2B45805D", 16) /* 488 */, Long.fromString("3C81AF70E94D9289", 16) /* 489 */,
Long.fromString("3EFF6DDA9E3100DB", 16) /* 490 */, Long.fromString("B38DC39FDFCC8847", 16) /* 491 */,
Long.fromString("123885528D17B87E", 16) /* 492 */, Long.fromString("F2DA0ED240B1B642", 16) /* 493 */,
Long.fromString("44CEFADCD54BF9A9", 16) /* 494 */, Long.fromString("1312200E433C7EE6", 16) /* 495 */,
Long.fromString("9FFCC84F3A78C748", 16) /* 496 */, Long.fromString("F0CD1F72248576BB", 16) /* 497 */,
Long.fromString("EC6974053638CFE4", 16) /* 498 */, Long.fromString("2BA7B67C0CEC4E4C", 16) /* 499 */,
Long.fromString("AC2F4DF3E5CE32ED", 16) /* 500 */, Long.fromString("CB33D14326EA4C11", 16) /* 501 */,
Long.fromString("A4E9044CC77E58BC", 16) /* 502 */, Long.fromString("5F513293D934FCEF", 16) /* 503 */,
Long.fromString("5DC9645506E55444", 16) /* 504 */, Long.fromString("50DE418F317DE40A", 16) /* 505 */,
Long.fromString("388CB31A69DDE259", 16) /* 506 */, Long.fromString("2DB4A83455820A86", 16) /* 507 */,
Long.fromString("9010A91E84711AE9", 16) /* 508 */, Long.fromString("4DF7F0B7B1498371", 16) /* 509 */,
Long.fromString("D62A2EABC0977179", 16) /* 510 */, Long.fromString("22FAC097AA8D5C0E", 16) /* 511 */,
];
const t3 = [
Long.fromString("F49FCC2FF1DAF39B", 16) /* 512 */, Long.fromString("487FD5C66FF29281", 16) /* 513 */,
Long.fromString("E8A30667FCDCA83F", 16) /* 514 */, Long.fromString("2C9B4BE3D2FCCE63", 16) /* 515 */,
Long.fromString("DA3FF74B93FBBBC2", 16) /* 516 */, Long.fromString("2FA165D2FE70BA66", 16) /* 517 */,
Long.fromString("A103E279970E93D4", 16) /* 518 */, Long.fromString("BECDEC77B0E45E71", 16) /* 519 */,
Long.fromString("CFB41E723985E497", 16) /* 520 */, Long.fromString("B70AAA025EF75017", 16) /* 521 */,
Long.fromString("D42309F03840B8E0", 16) /* 522 */, Long.fromString("8EFC1AD035898579", 16) /* 523 */,
Long.fromString("96C6920BE2B2ABC5", 16) /* 524 */, Long.fromString("66AF4163375A9172", 16) /* 525 */,
Long.fromString("2174ABDCCA7127FB", 16) /* 526 */, Long.fromString("B33CCEA64A72FF41", 16) /* 527 */,
Long.fromString("F04A4933083066A5", 16) /* 528 */, Long.fromString("8D970ACDD7289AF5", 16) /* 529 */,
Long.fromString("8F96E8E031C8C25E", 16) /* 530 */, Long.fromString("F3FEC02276875D47", 16) /* 531 */,
Long.fromString("EC7BF310056190DD", 16) /* 532 */, Long.fromString("F5ADB0AEBB0F1491", 16) /* 533 */,
Long.fromString("9B50F8850FD58892", 16) /* 534 */, Long.fromString("4975488358B74DE8", 16) /* 535 */,
Long.fromString("A3354FF691531C61", 16) /* 536 */, Long.fromString("0702BBE481D2C6EE", 16) /* 537 */,
Long.fromString("1411258643CCE58A", 16) /* 698 */, Long.fromString("9144C5FEA4C6E0A4", 16) /* 699 */,
Long.fromString("0D33D06565CF620F", 16) /* 700 */, Long.fromString("54A48D489F219CA1", 16) /* 701 */,
Long.fromString("C43E5EAC6D63C821", 16) /* 702 */, Long.fromString("A9728B3A72770DAF", 16) /* 703 */,
Long.fromString("D7934E7B20DF87EF", 16) /* 704 */, Long.fromString("E35503B61A3E86E5", 16) /* 705 */,
Long.fromString("CAE321FBC819D504", 16) /* 706 */, Long.fromString("129A50B3AC60BFA6", 16) /* 707 */,
Long.fromString("CD5E68EA7E9FB6C3", 16) /* 708 */, Long.fromString("B01C90199483B1C7", 16) /* 709 */,
Long.fromString("3DE93CD5C295376C", 16) /* 710 */, Long.fromString("AED52EDF2AB9AD13", 16) /* 711 */,
Long.fromString("2E60F512C0A07884", 16) /* 712 */, Long.fromString("BC3D86A3E36210C9", 16) /* 713 */,
Long.fromString("35269D9B163951CE", 16) /* 714 */, Long.fromString("0C7D6E2AD0CDB5FA", 16) /* 715 */,
Long.fromString("59E86297D87F5733", 16) /* 716 */, Long.fromString("298EF221898DB0E7", 16) /* 717 */,
Long.fromString("55000029D1A5AA7E", 16) /* 718 */, Long.fromString("8BC08AE1B5061B45", 16) /* 719 */,
Long.fromString("C2C31C2B6C92703A", 16) /* 720 */, Long.fromString("94CC596BAF25EF42", 16) /* 721 */,
Long.fromString("0A1D73DB22540456", 16) /* 722 */, Long.fromString("04B6A0F9D9C4179A", 16) /* 723 */,
Long.fromString("EFFDAFA2AE3D3C60", 16) /* 724 */, Long.fromString("F7C8075BB49496C4", 16) /* 725 */,
Long.fromString("9CC5C7141D1CD4E3", 16) /* 726 */, Long.fromString("78BD1638218E5534", 16) /* 727 */,
Long.fromString("B2F11568F850246A", 16) /* 728 */, Long.fromString("EDFABCFA9502BC29", 16) /* 729 */,
Long.fromString("796CE5F2DA23051B", 16) /* 730 */, Long.fromString("AAE128B0DC93537C", 16) /* 731 */,
Long.fromString("3A493DA0EE4B29AE", 16) /* 732 */, Long.fromString("B5DF6B2C416895D7", 16) /* 733 */,
Long.fromString("FCABBD25122D7F37", 16) /* 734 */, Long.fromString("70810B58105DC4B1", 16) /* 735 */,
Long.fromString("E10FDD37F7882A90", 16) /* 736 */, Long.fromString("524DCAB5518A3F5C", 16) /* 737 */,
Long.fromString("3C9E85878451255B", 16) /* 738 */, Long.fromString("4029828119BD34E2", 16) /* 739 */,
Long.fromString("74A05B6F5D3CECCB", 16) /* 740 */, Long.fromString("B610021542E13ECA", 16) /* 741 */,
Long.fromString("0FF979D12F59E2AC", 16) /* 742 */, Long.fromString("6037DA27E4F9CC50", 16) /* 743 */,
Long.fromString("5E92975A0DF1847D", 16) /* 744 */, Long.fromString("D66DE190D3E623FE", 16) /* 745 */,
Long.fromString("5032D6B87B568048", 16) /* 746 */, Long.fromString("9A36B7CE8235216E", 16) /* 747 */,
Long.fromString("80272A7A24F64B4A", 16) /* 748 */, Long.fromString("93EFED8B8C6916F7", 16) /* 749 */,
Long.fromString("37DDBFF44CCE1555", 16) /* 750 */, Long.fromString("4B95DB5D4B99BD25", 16) /* 751 */,
Long.fromString("92D3FDA169812FC0", 16) /* 752 */, Long.fromString("FB1A4A9A90660BB6", 16) /* 753 */,
Long.fromString("730C196946A4B9B2", 16) /* 754 */, Long.fromString("81E289AA7F49DA68", 16) /* 755 */,
Long.fromString("64669A0F83B1A05F", 16) /* 756 */, Long.fromString("27B3FF7D9644F48B", 16) /* 757 */,
Long.fromString("CC6B615C8DB675B3", 16) /* 758 */, Long.fromString("674F20B9BCEBBE95", 16) /* 759 */,
Long.fromString("6F31238275655982", 16) /* 760 */, Long.fromString("5AE488713E45CF05", 16) /* 761 */,
Long.fromString("8029927B75F5C361", 16) /* 132 */, Long.fromString("AD139FABC3D6E436", 16) /* 133 */,
Long.fromString("0D5DF1A94CCF402F", 16) /* 134 */, Long.fromString("3E8BD948BEA5DFC8", 16) /* 135 */,
Long.fromString("A5A0D357BD3FF77E", 16) /* 136 */, Long.fromString("A2D12E251F74F645", 16) /* 137 */,
Long.fromString("66FD9E525E81A082", 16) /* 138 */, Long.fromString("2E0C90CE7F687A49", 16) /* 139 */,
Long.fromString("C2E8BCBEBA973BC5", 16) /* 140 */, Long.fromString("000001BCE509745F", 16) /* 141 */,
Long.fromString("423777BBE6DAB3D6", 16) /* 142 */, Long.fromString("D1661C7EAEF06EB5", 16) /* 143 */,
Long.fromString("A1781F354DAACFD8", 16) /* 144 */, Long.fromString("2D11284A2B16AFFC", 16) /* 145 */,
Long.fromString("F1FC4F67FA891D1F", 16) /* 146 */, Long.fromString("73ECC25DCB920ADA", 16) /* 147 */,
Long.fromString("AE610C22C2A12651", 16) /* 148 */, Long.fromString("96E0A810D356B78A", 16) /* 149 */,
Long.fromString("5A9A381F2FE7870F", 16) /* 150 */, Long.fromString("D5AD62EDE94E5530", 16) /* 151 */,
Long.fromString("D225E5E8368D1427", 16) /* 152 */, Long.fromString("65977B70C7AF4631", 16) /* 153 */,
Long.fromString("99F889B2DE39D74F", 16) /* 154 */, Long.fromString("233F30BF54E1D143", 16) /* 155 */,
Long.fromString("9A9675D3D9A63C97", 16) /* 156 */, Long.fromString("5470554FF334F9A8", 16) /* 157 */,
Long.fromString("166ACB744A4F5688", 16) /* 158 */, Long.fromString("70C74CAAB2E4AEAD", 16) /* 159 */,
Long.fromString("F0D091646F294D12", 16) /* 160 */, Long.fromString("57B82A89684031D1", 16) /* 161 */,
Long.fromString("EFD95A5A61BE0B6B", 16) /* 162 */, Long.fromString("2FBD12E969F2F29A", 16) /* 163 */,
Long.fromString("9BD37013FEFF9FE8", 16) /* 164 */, Long.fromString("3F9B0404D6085A06", 16) /* 165 */,
Long.fromString("4940C1F3166CFE15", 16) /* 166 */, Long.fromString("09542C4DCDF3DEFB", 16) /* 167 */,
Long.fromString("B4C5218385CD5CE3", 16) /* 168 */, Long.fromString("C935B7DC4462A641", 16) /* 169 */,
Long.fromString("3417F8A68ED3B63F", 16) /* 170 */, Long.fromString("B80959295B215B40", 16) /* 171 */,
Long.fromString("F99CDAEF3B8C8572", 16) /* 172 */, Long.fromString("018C0614F8FCB95D", 16) /* 173 */,
Long.fromString("1B14ACCD1A3ACDF3", 16) /* 174 */, Long.fromString("84D471F200BB732D", 16) /* 175 */,
Long.fromString("C1A3110E95E8DA16", 16) /* 176 */, Long.fromString("430A7220BF1A82B8", 16) /* 177 */,
Long.fromString("B77E090D39DF210E", 16) /* 178 */, Long.fromString("5EF4BD9F3CD05E9D", 16) /* 179 */,
Long.fromString("9D4FF6DA7E57A444", 16) /* 180 */, Long.fromString("DA1D60E183D4A5F8", 16) /* 181 */,
Long.fromString("B287C38417998E47", 16) /* 182 */, Long.fromString("FE3EDC121BB31886", 16) /* 183 */,
Long.fromString("C7FE3CCC980CCBEF", 16) /* 184 */, Long.fromString("E46FB590189BFD03", 16) /* 185 */,
Long.fromString("3732FD469A4C57DC", 16) /* 186 */, Long.fromString("7EF700A07CF1AD65", 16) /* 187 */,
Long.fromString("59C64468A31D8859", 16) /* 188 */, Long.fromString("762FB0B4D45B61F6", 16) /* 189 */,
Long.fromString("155BAED099047718", 16) /* 190 */, Long.fromString("68755E4C3D50BAA6", 16) /* 191 */,
Long.fromString("E9214E7F22D8B4DF", 16) /* 192 */, Long.fromString("2ADDBF532EAC95F4", 16) /* 193 */,
Long.fromString("32AE3909B4BD0109", 16) /* 194 */, Long.fromString("834DF537B08E3450", 16) /* 195 */,
Long.fromString("F306558C673AC8B2", 16) /* 466 */, Long.fromString("41F639C6B6C9772A", 16) /* 467 */,
Long.fromString("216DEFE99FDA35DA", 16) /* 468 */, Long.fromString("11640CC71C7BE615", 16) /* 469 */,
Long.fromString("93C43694565C5527", 16) /* 470 */, Long.fromString("EA038E6246777839", 16) /* 471 */,
Long.fromString("F9ABF3CE5A3E2469", 16) /* 472 */, Long.fromString("741E768D0FD312D2", 16) /* 473 */,
Long.fromString("0144B883CED652C6", 16) /* 474 */, Long.fromString("C20B5A5BA33F8552", 16) /* 475 */,
Long.fromString("1AE69633C3435A9D", 16) /* 476 */, Long.fromString("97A28CA4088CFDEC", 16) /* 477 */,
Long.fromString("8824A43C1E96F420", 16) /* 478 */, Long.fromString("37612FA66EEEA746", 16) /* 479 */,
Long.fromString("6B4CB165F9CF0E5A", 16) /* 480 */, Long.fromString("43AA1C06A0ABFB4A", 16) /* 481 */,
Long.fromString("7F4DC26FF162796B", 16) /* 482 */, Long.fromString("6CBACC8E54ED9B0F", 16) /* 483 */,
Long.fromString("A6B7FFEFD2BB253E", 16) /* 484 */, Long.fromString("2E25BC95B0A29D4F", 16) /* 485 */,
Long.fromString("86D6A58BDEF1388C", 16) /* 486 */, Long.fromString("DED74AC576B6F054", 16) /* 487 */,
Long.fromString("8030BDBC2B45805D", 16) /* 488 */, Long.fromString("3C81AF70E94D9289", 16) /* 489 */,
Long.fromString("3EFF6DDA9E3100DB", 16) /* 490 */, Long.fromString("B38DC39FDFCC8847", 16) /* 491 */,
Long.fromString("123885528D17B87E", 16) /* 492 */, Long.fromString("F2DA0ED240B1B642", 16) /* 493 */,
Long.fromString("44CEFADCD54BF9A9", 16) /* 494 */, Long.fromString("1312200E433C7EE6", 16) /* 495 */,
Long.fromString("9FFCC84F3A78C748", 16) /* 496 */, Long.fromString("F0CD1F72248576BB", 16) /* 497 */,
Long.fromString("EC6974053638CFE4", 16) /* 498 */, Long.fromString("2BA7B67C0CEC4E4C", 16) /* 499 */,
Long.fromString("AC2F4DF3E5CE32ED", 16) /* 500 */, Long.fromString("CB33D14326EA4C11", 16) /* 501 */,
Long.fromString("A4E9044CC77E58BC", 16) /* 502 */, Long.fromString("5F513293D934FCEF", 16) /* 503 */,
Long.fromString("5DC9645506E55444", 16) /* 504 */, Long.fromString("50DE418F317DE40A", 16) /* 505 */,
Long.fromString("388CB31A69DDE259", 16) /* 506 */, Long.fromString("2DB4A83455820A86", 16) /* 507 */,
Long.fromString("9010A91E84711AE9", 16) /* 508 */, Long.fromString("4DF7F0B7B1498371", 16) /* 509 */,
Long.fromString("D62A2EABC0977179", 16) /* 510 */, Long.fromString("22FAC097AA8D5C0E", 16) /* 511 */,
];
const t3 = [
Long.fromString("F49FCC2FF1DAF39B", 16) /* 512 */, Long.fromString("487FD5C66FF29281", 16) /* 513 */,
Long.fromString("E8A30667FCDCA83F", 16) /* 514 */, Long.fromString("2C9B4BE3D2FCCE63", 16) /* 515 */,
Long.fromString("DA3FF74B93FBBBC2", 16) /* 516 */, Long.fromString("2FA165D2FE70BA66", 16) /* 517 */,
Long.fromString("A103E279970E93D4", 16) /* 518 */, Long.fromString("BECDEC77B0E45E71", 16) /* 519 */,
Long.fromString("CFB41E723985E497", 16) /* 520 */, Long.fromString("B70AAA025EF75017", 16) /* 521 */,
Long.fromString("D42309F03840B8E0", 16) /* 522 */, Long.fromString("8EFC1AD035898579", 16) /* 523 */,
Long.fromString("2B4BEE4AA08B9BD0", 16) /* 626 */, Long.fromString("6A56A63EC7B8894E", 16) /* 627 */,
Long.fromString("02121359BA34FEF4", 16) /* 628 */, Long.fromString("4CBF99F8283703FC", 16) /* 629 */,
Long.fromString("398071350CAF30C8", 16) /* 630 */, Long.fromString("D0A77A89F017687A", 16) /* 631 */,
Long.fromString("F1C1A9EB9E423569", 16) /* 632 */, Long.fromString("8C7976282DEE8199", 16) /* 633 */,
Long.fromString("5D1737A5DD1F7ABD", 16) /* 634 */, Long.fromString("4F53433C09A9FA80", 16) /* 635 */,
Long.fromString("FA8B0C53DF7CA1D9", 16) /* 636 */, Long.fromString("3FD9DCBC886CCB77", 16) /* 637 */,
Long.fromString("C040917CA91B4720", 16) /* 638 */, Long.fromString("7DD00142F9D1DCDF", 16) /* 639 */,
Long.fromString("8476FC1D4F387B58", 16) /* 640 */, Long.fromString("23F8E7C5F3316503", 16) /* 641 */,
Long.fromString("032A2244E7E37339", 16) /* 642 */, Long.fromString("5C87A5D750F5A74B", 16) /* 643 */,
Long.fromString("082B4CC43698992E", 16) /* 644 */, Long.fromString("DF917BECB858F63C", 16) /* 645 */,
Long.fromString("3270B8FC5BF86DDA", 16) /* 646 */, Long.fromString("10AE72BB29B5DD76", 16) /* 647 */,
Long.fromString("576AC94E7700362B", 16) /* 648 */, Long.fromString("1AD112DAC61EFB8F", 16) /* 649 */,
Long.fromString("691BC30EC5FAA427", 16) /* 650 */, Long.fromString("FF246311CC327143", 16) /* 651 */,
Long.fromString("3142368E30E53206", 16) /* 652 */, Long.fromString("71380E31E02CA396", 16) /* 653 */,
Long.fromString("958D5C960AAD76F1", 16) /* 654 */, Long.fromString("F8D6F430C16DA536", 16) /* 655 */,
Long.fromString("C8FFD13F1BE7E1D2", 16) /* 656 */, Long.fromString("7578AE66004DDBE1", 16) /* 657 */,
Long.fromString("05833F01067BE646", 16) /* 658 */, Long.fromString("BB34B5AD3BFE586D", 16) /* 659 */,
Long.fromString("095F34C9A12B97F0", 16) /* 660 */, Long.fromString("247AB64525D60CA8", 16) /* 661 */,
Long.fromString("DCDBC6F3017477D1", 16) /* 662 */, Long.fromString("4A2E14D4DECAD24D", 16) /* 663 */,
Long.fromString("BDB5E6D9BE0A1EEB", 16) /* 664 */, Long.fromString("2A7E70F7794301AB", 16) /* 665 */,
Long.fromString("DEF42D8A270540FD", 16) /* 666 */, Long.fromString("01078EC0A34C22C1", 16) /* 667 */,
Long.fromString("E5DE511AF4C16387", 16) /* 668 */, Long.fromString("7EBB3A52BD9A330A", 16) /* 669 */,
Long.fromString("77697857AA7D6435", 16) /* 670 */, Long.fromString("004E831603AE4C32", 16) /* 671 */,
Long.fromString("E7A21020AD78E312", 16) /* 672 */, Long.fromString("9D41A70C6AB420F2", 16) /* 673 */,
Long.fromString("28E06C18EA1141E6", 16) /* 674 */, Long.fromString("D2B28CBD984F6B28", 16) /* 675 */,
Long.fromString("26B75F6C446E9D83", 16) /* 676 */, Long.fromString("BA47568C4D418D7F", 16) /* 677 */,
Long.fromString("D80BADBFE6183D8E", 16) /* 678 */, Long.fromString("0E206D7F5F166044", 16) /* 679 */,
Long.fromString("E258A43911CBCA3E", 16) /* 680 */, Long.fromString("723A1746B21DC0BC", 16) /* 681 */,
Long.fromString("C7CAA854F5D7CDD3", 16) /* 682 */, Long.fromString("7CAC32883D261D9C", 16) /* 683 */,
Long.fromString("7690C26423BA942C", 16) /* 684 */, Long.fromString("17E55524478042B8", 16) /* 685 */,
Long.fromString("E0BE477656A2389F", 16) /* 686 */, Long.fromString("4D289B5E67AB2DA0", 16) /* 687 */,
Long.fromString("44862B9C8FBBFD31", 16) /* 688 */, Long.fromString("B47CC8049D141365", 16) /* 689 */,
Long.fromString("EFFDAFA2AE3D3C60", 16) /* 724 */, Long.fromString("F7C8075BB49496C4", 16) /* 725 */,
Long.fromString("9CC5C7141D1CD4E3", 16) /* 726 */, Long.fromString("78BD1638218E5534", 16) /* 727 */,
Long.fromString("B2F11568F850246A", 16) /* 728 */, Long.fromString("EDFABCFA9502BC29", 16) /* 729 */,
Long.fromString("796CE5F2DA23051B", 16) /* 730 */, Long.fromString("AAE128B0DC93537C", 16) /* 731 */,
Long.fromString("3A493DA0EE4B29AE", 16) /* 732 */, Long.fromString("B5DF6B2C416895D7", 16) /* 733 */,
Long.fromString("FCABBD25122D7F37", 16) /* 734 */, Long.fromString("70810B58105DC4B1", 16) /* 735 */,
Long.fromString("E10FDD37F7882A90", 16) /* 736 */, Long.fromString("524DCAB5518A3F5C", 16) /* 737 */,
Long.fromString("3C9E85878451255B", 16) /* 738 */, Long.fromString("4029828119BD34E2", 16) /* 739 */,
Long.fromString("74A05B6F5D3CECCB", 16) /* 740 */, Long.fromString("B610021542E13ECA", 16) /* 741 */,
Long.fromString("0FF979D12F59E2AC", 16) /* 742 */, Long.fromString("6037DA27E4F9CC50", 16) /* 743 */,
Long.fromString("5E92975A0DF1847D", 16) /* 744 */, Long.fromString("D66DE190D3E623FE", 16) /* 745 */,
Long.fromString("5032D6B87B568048", 16) /* 746 */, Long.fromString("9A36B7CE8235216E", 16) /* 747 */,
Long.fromString("80272A7A24F64B4A", 16) /* 748 */, Long.fromString("93EFED8B8C6916F7", 16) /* 749 */,
Long.fromString("37DDBFF44CCE1555", 16) /* 750 */, Long.fromString("4B95DB5D4B99BD25", 16) /* 751 */,
Long.fromString("92D3FDA169812FC0", 16) /* 752 */, Long.fromString("FB1A4A9A90660BB6", 16) /* 753 */,
Long.fromString("730C196946A4B9B2", 16) /* 754 */, Long.fromString("81E289AA7F49DA68", 16) /* 755 */,
Long.fromString("64669A0F83B1A05F", 16) /* 756 */, Long.fromString("27B3FF7D9644F48B", 16) /* 757 */,
Long.fromString("CC6B615C8DB675B3", 16) /* 758 */, Long.fromString("674F20B9BCEBBE95", 16) /* 759 */,
Long.fromString("6F31238275655982", 16) /* 760 */, Long.fromString("5AE488713E45CF05", 16) /* 761 */,
Long.fromString("BF619F9954C21157", 16) /* 762 */, Long.fromString("EABAC46040A8EAE9", 16) /* 763 */,
Long.fromString("454C6FE9F2C0C1CD", 16) /* 764 */, Long.fromString("419CF6496412691C", 16) /* 765 */,
Long.fromString("D3DC3BEF265B0F70", 16) /* 766 */, Long.fromString("6D0E60F5C3578A9E", 16) /* 767 */,
];
const t4 = [
Long.fromString("5B0E608526323C55", 16) /* 768 */, Long.fromString("1A46C1A9FA1B59F5", 16) /* 769 */,
Long.fromString("A9E245A17C4C8FFA", 16) /* 770 */, Long.fromString("65CA5159DB2955D7", 16) /* 771 */,
Long.fromString("05DB0A76CE35AFC2", 16) /* 772 */, Long.fromString("81EAC77EA9113D45", 16) /* 773 */,
Long.fromString("528EF88AB6AC0A0D", 16) /* 774 */, Long.fromString("A09EA253597BE3FF", 16) /* 775 */,
Long.fromString("430DDFB3AC48CD56", 16) /* 776 */, Long.fromString("C4B3A67AF45CE46F", 16) /* 777 */,
Long.fromString("4ECECFD8FBE2D05E", 16) /* 778 */, Long.fromString("3EF56F10B39935F0", 16) /* 779 */,
Long.fromString("0B22D6829CD619C6", 16) /* 780 */, Long.fromString("17FD460A74DF2069", 16) /* 781 */,
.xor(this.C1[i + 1].and(m1))
.xor(this.C2[i + 2].and(m2))
.xor(this.C3[i + 3].and(m3))
.xor(this.C4[i + 4].and(m4))
.xor(this.C5[i + 5].and(m5))
.xor(this.C6[i + 6].and(m6))
.xor(this.C7[i + 7].and(m7));
}
// Reset counters
this.reset();
}
const m0 = Long.fromString("ff00000000000000", 16);
const m1 = Long.fromString("00ff000000000000", 16);
const m2 = Long.fromString("0000ff0000000000", 16);
const m3 = Long.fromString("000000ff00000000", 16);
const m4 = Long.fromString("00000000ff000000", 16);
const m5 = Long.fromString("0000000000ff0000", 16);
const m6 = Long.fromString("000000000000ff00", 16);
const m7 = Long.fromString("00000000000000ff", 16);
var packIntoLong = function(b7, b6, b5, b4, b3, b2, b1, b0) {
return Long.fromBits(util.decodeUInt32R([b0, b1, b2, b3], 0), util.decodeUInt32R([b4, b5, b6, b7], 0));
}
// int's are used to prevent sign extension. The values that are really being used are
// actually just 0..255
var maskWithReductionPolynomial = function(input) {
var rv = input;
if (rv >= 0x100) { // high bit set