mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Add additional Threefish test vectors
The test vectors came from NIST submission archive (NIST_CD_102610), skein_golden_kat_short_internals.txt
This commit is contained in:
parent
ae09662f43
commit
5bf43f4ef3
@ -1,6 +1,7 @@
|
||||
AlgorithmType: SymmetricCipher
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 1
|
||||
Source: Botan test vectors (threefish.vec)
|
||||
Key: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Plaintext: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
@ -10,6 +11,7 @@ Ciphertext: B1A2BBC6EF6025BC 40EB3822161F36E3 75D1BB0AEE3186FB D19E47C5D479947B
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 2
|
||||
Source: Botan test vectors (threefish.vec)
|
||||
Key: B1A2BBC6EF6025BC 40EB3822161F36E3 75D1BB0AEE3186FB D19E47C5D479947B \
|
||||
7BC2F8586E35F0CF F7E7F03084B0B7B1 F1AB3961A580A3E9 7EB41EA14A6D7BBE
|
||||
Plaintext: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
@ -19,6 +21,7 @@ Ciphertext: F13CA06760DD9BBE AB87B6C56F3BBBDB E9D08A77978B942A C02D471DC10268F2
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 3
|
||||
Source: Botan test vectors (threefish.vec)
|
||||
Key: F13CA06760DD9BBE AB87B6C56F3BBBDB E9D08A77978B942A C02D471DC10268F2 \
|
||||
261C3D4330D6CA34 1F4BD4115DEE16A2 1DCDA2A34A0A76FB A976174E4CF1E306
|
||||
Plaintext: B1A2BBC6EF6025BC 40EB3822161F36E3 75D1BB0AEE3186FB D19E47C5D479947B \
|
||||
@ -28,6 +31,7 @@ Ciphertext: 1BEC82CBA1357566 B34E1CF1FBF123A1 41C8F4089F6E4CE3 209AEA10095AEC93
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 4
|
||||
Source: Botan test vectors (threefish.vec)
|
||||
Key: F13CA06760DD9BBE AB87B6C56F3BBBDB E9D08A77978B942A C02D471DC10268F2 \
|
||||
261C3D4330D6CA34 1F4BD4115DEE16A2 1DCDA2A34A0A76FB A976174E4CF1E306
|
||||
Plaintext: B1A2BBC6EF6025BC 40EB3822161F36E3 75D1BB0AEE3186FB D19E47C5D479947B \
|
||||
@ -39,3 +43,76 @@ Ciphertext: 1BEC82CBA1357566 B34E1CF1FBF123A1 41C8F4089F6E4CE3 209AEA10095AEC93
|
||||
073CB5F8FABFA17D B751477F294EB3DD 4ACD92B78397331F CC36A9C3D3055B81 \
|
||||
D867CBDD56279037 373359CA1832669A F4B87A1F2FDAF8D3 6E2FB7A6D19F5D45
|
||||
Test: Encrypt
|
||||
##################################################################################
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 5, Threefish-256, null tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0000000000000000 0000000000000000
|
||||
Key: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Plaintext: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Ciphertext: word64 94EEEA8B1F2ADA84 ADF103313EAE6670 952419A1F4B16D53 D83F13E63C9F6B11
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 6, Threefish-256, tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0706050403020100 0F0E0D0C0B0A0908
|
||||
Key: word64 1716151413121110 1F1E1D1C1B1A1918 2726252423222120 2F2E2D2C2B2A2928
|
||||
Plaintext: word64 F8F9FAFBFCFDFEFF F0F1F2F3F4F5F6F7 E8E9EAEBECEDEEEF E0E1E2E3E4E5E6E7
|
||||
Ciphertext: word64 DF8FEA0EFF91D0E0 D50AD82EE69281C9 76F48D58085D869D DF975E95B5567065
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 7, Threefish-512, null tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0000000000000000 0000000000000000
|
||||
Key: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Plaintext: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Ciphertext: word64 BC2560EFC6BBA2B1 E3361F162238EB40 FB8631EE0ABBD175 7B9479D4C5479ED1 \
|
||||
CFF0356E58F8C27B B1B7B08430F0E7F7 E9A380A56139ABF1 BE7B6D4AA11EB47E
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 8, Threefish-512, tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0706050403020100 0F0E0D0C0B0A0908
|
||||
Key: word64 1716151413121110 1F1E1D1C1B1A1918 2726252423222120 2F2E2D2C2B2A2928 \
|
||||
3736353433323130 3F3E3D3C3B3A3938 4746454443424140 4F4E4D4C4B4A4948
|
||||
Plaintext: word64 F8F9FAFBFCFDFEFF F0F1F2F3F4F5F6F7 E8E9EAEBECEDEEEF E0E1E2E3E4E5E6E7 \
|
||||
D8D9DADBDCDDDEDF D0D1D2D3D4D5D6D7 C8C9CACBCCCDCECF C0C1C2C3C4C5C6C7
|
||||
Ciphertext: word64 2C5AD426964304E3 9A2436D6D8CA01B4 DD456DB00E333863 794725970EB9368B \
|
||||
043546998D0A2A27 25A7C918EA204478 346201A1FEDF11AF 3DAF1C5C3D672789
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 9, Threefish-1024, null tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0000000000000000 0000000000000000
|
||||
Key: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Plaintext: word64 0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000 \
|
||||
0000000000000000 0000000000000000 0000000000000000 0000000000000000
|
||||
Ciphertext: word64 04B3053D0A3D5CF0 0136E0D1C7DD85F7 067B212F6EA78A5C 0DA9C10B4C54E1C6 \
|
||||
0F4EC27394CBACF0 32437F0568EA4FD5 CFF56D1D7654B49C A2D5FB14369B2E7B \
|
||||
540306B460472E0B 71C18254BCEA820D C36B4068BEAF32C8 FA4329597A360095 \
|
||||
C4A36C28434A5B9A D54331444B1046CF DF11834830B2A460 1E39E8DFE1F7EE4F
|
||||
Test: Encrypt
|
||||
Name: Threefish/ECB
|
||||
Comment: Test Vector 10, Threefish-1024, tweak
|
||||
Source: skein_golden_kat_internals.txt
|
||||
Tweak: word64 0706050403020100 0F0E0D0C0B0A0908
|
||||
Key: word64 1716151413121110 1F1E1D1C1B1A1918 2726252423222120 2F2E2D2C2B2A2928 \
|
||||
3736353433323130 3F3E3D3C3B3A3938 4746454443424140 4F4E4D4C4B4A4948 \
|
||||
5756555453525150 5F5E5D5C5B5A5958 6766656463626160 6F6E6D6C6B6A6968 \
|
||||
7776757473727170 7F7E7D7C7B7A7978 8786858483828180 8F8E8D8C8B8A8988
|
||||
Plaintext: word64 F8F9FAFBFCFDFEFF F0F1F2F3F4F5F6F7 E8E9EAEBECEDEEEF E0E1E2E3E4E5E6E7 \
|
||||
D8D9DADBDCDDDEDF D0D1D2D3D4D5D6D7 C8C9CACBCCCDCECF C0C1C2C3C4C5C6C7 \
|
||||
B8B9BABBBCBDBEBF B0B1B2B3B4B5B6B7 A8A9AAABACADAEAF A0A1A2A3A4A5A6A7 \
|
||||
98999A9B9C9D9E9F 9091929394959697 88898A8B8C8D8E8F 8081828384858687
|
||||
Ciphertext: word64 B0C33CD7DB4D65A6 BC49A85A1077D75D 6855FCAFEA7293E4 1C5385AB1B7754D2 \
|
||||
30E4AAFFE780F794 E1BBEE708CAFD8D5 9CA837B7423B0F76 BD1403670D4963B3 \
|
||||
451F2E3CE61EA48A B360832F9277D4FB 0AAFC7A65E12D688 C8906E79016D05D7 \
|
||||
B316570A15F41333 74E98A2869F5D50E 57CE6F9247432BCE DE7CDD77215144DE
|
||||
Test: Encrypt
|
||||
|
Loading…
Reference in New Issue
Block a user