Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1682071 IKE Quick mode IPSEC give you incorrect keys if you are a…
…sking for keys smaller than the hash size. IKE Appendix B fixes. This patch fixes 2 problems. If you run either ike v1 App B or quick mode asking for a key with length mod macsize = 0, you will generate an extra block that's not used and overwrites the end of the buffer. If you use quick mode, the function incorrectly subsets the existing key rather than generating a new key. This is correct behavior for Appendix B, where appendix B is trying to take a generated key and create a new longer key (with no diversification, just transform the key into something that's longer), so if you ask for a key less than or equal to, then you want to just subset the original key. In quick mode you are taking a base key and creating a set of new keys based on additional data, so you want to subset the generated data. This patch only subsets the original key if you aren't doing quickmode. Full test vectors have now been added for all ike modes in this patch as well (previously we depended on the FIPS CAVS tests to test ike, which covers basic IKEv1, IKEv1_psk, and IKEv2 but not IKEv1 App B and IKE v1 Quick mode). Differential Revision: https://phabricator.services.mozilla.com/D99569
- Loading branch information
Showing
10 changed files
with
887 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* vim: set ts=2 et sw=2 tw=80: */ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* This file is generated from sources in nss/gtests/common/wycheproof | ||
* automatically and should not be touched manually. | ||
* Generation is trigged by calling python3 genTestVectors.py */ | ||
|
||
#ifndef ike_aesxcbc_vectors_h__ | ||
#define ike_aesxcbc_vectors_h__ | ||
|
||
#include "testvectors_base/test-structs.h" | ||
|
||
const IkeTestVector kIkeAesXcbcProofVectors[] = { | ||
// these vectors are self generated. | ||
{1, IkeTestType::ikeGxy, | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", "", "", | ||
"ef41a18b8c1ece71d74fedb292fd0f00", "69a62284195f1680", "80c94ba25c8abda5", | ||
"", 0, 0, true}, | ||
{2, IkeTestType::ikeV1, "ef41a18b8c1ece71d74fedb292fd0f00", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", "", | ||
"13525f37f9db53a65d1945b9af2c94f4", "8c3bcd3a69831d7f", "d2d9a7ff4fbe95a7", | ||
"", 0, 0, true}, | ||
{3, IkeTestType::ikeV1, "ef41a18b8c1ece71d74fedb292fd0f00", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", | ||
"13525f37f9db53a65d1945b9af2c94f4", "39d0712a1a96d1afaddbc35de86bc404", | ||
"8c3bcd3a69831d7f", "d2d9a7ff4fbe95a7", "", 1, 0, true}, | ||
{4, IkeTestType::ikeV1, "ef41a18b8c1ece71d74fedb292fd0f00", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", | ||
"39d0712a1a96d1afaddbc35de86bc404", "691cc90e93feb1cc06c8d376d3188293", | ||
"8c3bcd3a69831d7f", "d2d9a7ff4fbe95a7", "", 2, 0, true}, | ||
{5, IkeTestType::ikeV1Psk, "c0", "", "", "8963b0c6057c347c4ddec448f1779e2a", | ||
"03a6f25a83c8c2a3", "9d958a6618f77e7f", "", 0, 0, true}, | ||
{6, IkeTestType::ikeGxy, | ||
"4b2c1f971981a8ad8d0abeafabf38cf75fc8349c148142465ed9c8b516b8be52", "", "", | ||
"08b95345c9557240ddc98d6e1dfda875", "32b50d5f4a3763f3", "9206a04b26564cb1", | ||
"", 0, 0, true}, | ||
{7, IkeTestType::ikeV2Rekey, "efa38ecee9fd05062f64b655105436d54", | ||
"863f3c9d06efd39d2b907b97f8699e5dd5251ef64a2a176f36ee40c87d4f9330", "", | ||
"a881d193f5140415586a2839e1cacb91", "32b50d5f4a3763f3", "9206a04b26564cb1", | ||
"", 0, 0, true}, | ||
{8, IkeTestType::ikePlus, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"efa38ecee9fd05062f64b655105436d54b4728da66f3bc5768636170ff5017ab082342a68" | ||
"3e7144a58d549c53d4575a2897d14c7c687040e86384065456b8dcd8aaea88b85b5e4d8ab" | ||
"2f61c015859337000550cda1750a15c1f90af0ddd296e0a7f291afe46295dd3108078bd8e" | ||
"adf09bc614c205a7c283907c3e6a384ad3f5373887e83", | ||
"", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
132, true}, | ||
{9, IkeTestType::ikePlus, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"efa38ecee9fd05062f64b655105436d5", "", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
16, true}, | ||
{10, IkeTestType::ikePlus, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"efa38ecee9fd05062f64b655105436", "", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
15, true}, | ||
// these vectors are self-generated | ||
{11, IkeTestType::ikeV1AppB, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"9203190ea765285c14ec496acdb73f99479ee08f3e3b5f277a516439888f74a2ddb5023f2" | ||
"92c629e7194b3673632ff96bccd7de7ae68a90952fec65301c89d3a32981d5bb9d68b677e" | ||
"96703f34ed6474deee2d8aa5c5cee8997ec223a24cd537042b74d1b5274eebe76520481a7" | ||
"5a6d083b004819ea9359ffacef3ac6076cbbb0b80faab", | ||
"", "", "", 0, 132, true}, | ||
{12, IkeTestType::ikeV1AppB, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"08b95345c9557240ddc98d6e1dfda875", "", "", "", 0, 16, true}, | ||
{13, IkeTestType::ikeV1AppB, "08b95345c9557240ddc98d6e1dfda875", "", "", | ||
"08b95345c9557240ddc98d6e1dfda8", "", "", "", 0, 15, true}, | ||
{14, IkeTestType::ikeV1AppBQuick, "08b95345c9557240ddc98d6e1dfda875", "", | ||
"", | ||
"9203190ea765285c14ec496acdb73f99a2358c44449799788d589fc426405bd0d9bc42758" | ||
"04e2946d3cfd6072db257e2da4b9fecca10f23b271f793e7f66d19db446245e6cdd9446a8" | ||
"e2ca27439c6692ce3f15cbcafc40c5879adb98310a4f8a5de14fe502d2c4e2b35f7054974" | ||
"9a95f9510ac2d02a470973ca91931f1a82bf944935f76", | ||
"", "", "0", 0, 132, true}, | ||
{12, IkeTestType::ikeV1AppBQuick, "08b95345c9557240ddc98d6e1dfda875", "", | ||
"", "9203190ea765285c14ec496acdb73f99", "", "", "0", 0, 16, true}, | ||
{16, IkeTestType::ikeV1AppBQuick, "08b95345c9557240ddc98d6e1dfda875", "", | ||
"", "9203190ea765285c14ec496acdb73f", "", "", "0", 0, 15, true}, | ||
}; | ||
|
||
#endif // ike_aesxcbc_vectors_h__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/* vim: set ts=2 et sw=2 tw=80: */ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* This file is generated from sources in nss/gtests/common/wycheproof | ||
* automatically and should not be touched manually. | ||
* Generation is trigged by calling python3 genTestVectors.py */ | ||
|
||
#ifndef ike_sha1_vectors_h__ | ||
#define ike_sha1_vectors_h__ | ||
|
||
#include "testvectors_base/test-structs.h" | ||
|
||
const IkeTestVector kIkeSha1ProofVectors[] = { | ||
// these vectors are from this NIST samples | ||
{1, IkeTestType::ikeGxy, | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", "", "", | ||
"707197817fb2d90cf54d1842606bdea59b9f4823", "69a62284195f1680", | ||
"80c94ba25c8abda5", "", 0, 0, true}, | ||
{2, IkeTestType::ikeV1, "707197817fb2d90cf54d1842606bdea59b9f4823", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", "", | ||
"384be709a8a5e63c3ed160cfe3921c4b37d5b32d", "8c3bcd3a69831d7f", | ||
"d2d9a7ff4fbe95a7", "", 0, 0, true}, | ||
{3, IkeTestType::ikeV1, "707197817fb2d90cf54d1842606bdea59b9f4823", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", | ||
"384be709a8a5e63c3ed160cfe3921c4b37d5b32d", | ||
"48b327575abe3adba0f279849e289022a13e2b47", "8c3bcd3a69831d7f", | ||
"d2d9a7ff4fbe95a7", "", 1, 0, true}, | ||
{4, IkeTestType::ikeV1, "707197817fb2d90cf54d1842606bdea59b9f4823", | ||
"8ba4cbc73c0187301dc19a975823854dbd641c597f637f8d053a83b9514673eb", | ||
"48b327575abe3adba0f279849e289022a13e2b47", | ||
"a4a415c8e0c38c0da847c356cc61c24df8025560", "8c3bcd3a69831d7f", | ||
"d2d9a7ff4fbe95a7", "", 2, 0, true}, | ||
{5, IkeTestType::ikeV1Psk, "c0", "", "", | ||
"ab3be41bc62f2ef0c41a3076d58768be77fadd2e", "03a6f25a83c8c2a3", | ||
"9d958a6618f77e7f", "", 0, 0, true}, | ||
{6, IkeTestType::ikeGxy, | ||
"4b2c1f971981a8ad8d0abeafabf38cf75fc8349c148142465ed9c8b516b8be52", "", "", | ||
"a9a7b222b59f8f48645f28a1db5b5f5d7479cba7", "32b50d5f4a3763f3", | ||
"9206a04b26564cb1", "", 0, 0, true}, | ||
{7, IkeTestType::ikeV2Rekey, "a14293677cc80ff8f9cc0eee30d895da9d8f4056", | ||
"863f3c9d06efd39d2b907b97f8699e5dd5251ef64a2a176f36ee40c87d4f9330", "", | ||
"63e81194946ebd05df7df5ebf5d8750056bf1f1d", "32b50d5f4a3763f3", | ||
"9206a04b26564cb1", "", 0, 0, true}, | ||
{8, IkeTestType::ikePlus, "a9a7b222b59f8f48645f28a1db5b5f5d7479cba7", "", | ||
"", | ||
"a14293677cc80ff8f9cc0eee30d895da9d8f405666e30ef0dfcb63c634a46002a2a63080e" | ||
"514a062768b76606f9fa5e992204fc5a670bde3f10d6b027113936a5c55b648a194ae587b" | ||
"0088d52204b702c979fa280870d2ed41efa9c549fd11198af1670b143d384bd275c5f594c" | ||
"f266b05ebadca855e4249520a441a81157435a7a56cc4", | ||
"", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
132, true}, | ||
{9, IkeTestType::ikePlus, "a9a7b222b59f8f48645f28a1db5b5f5d7479cba7", "", | ||
"", | ||
"a14293677cc80ff8f9cc0eee30d895da9d8f405666e30ef0dfcb63c634a46002a2a63080e" | ||
"514a062", | ||
"", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
40, true}, | ||
{10, IkeTestType::ikePlus, "a9a7b222b59f8f48645f28a1db5b5f5d7479cba7", "", | ||
"", "a14293677cc80ff8f9cc0eee30d895", "", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"32b50d5f4a3763f3" // Ni | ||
"9206a04b26564cb1" // Nr | ||
"34c9e7c188868785" // SPIi | ||
"3ff77d760d2b2199", // SPIr | ||
0, | ||
15, true}, | ||
// these vectors are self-generated | ||
{11, IkeTestType::ikeV1AppB, "63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", | ||
"", | ||
"933347a07de5782247dd36d1562ffe0eecade1eb4134165257e3af1000af8ae3f16506382" | ||
"8cbb60d910b7db38fa3c7f62c4afaaf3203da065c841729853edb23e9e7ac8286ae65c8cb" | ||
"6c667d79268c0bd6705abb9131698eb822b1c1f9dd142fc7be2c1010ee0152e10195add98" | ||
"999c6b6d42c8fe9c1b134d56ad5f2c6f20e815bd25c52", | ||
"", "", "", 0, 132, true}, | ||
{12, IkeTestType::ikeV1AppB, "63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", | ||
"", | ||
"933347a07de5782247dd36d1562ffe0eecade1eb4134165257e3af1000af8ae3f16506382" | ||
"8cbb60d", | ||
"", "", "", 0, 40, true}, | ||
{13, IkeTestType::ikeV1AppB, "63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", | ||
"", "63e81194946ebd05df7df5ebf5d875", "", "", "", 0, 15, true}, | ||
{14, IkeTestType::ikeV1AppBQuick, | ||
"63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", "", | ||
"933347a07de5782247dd36d1562ffe0eecade1ebaeaa476a5f578c34a9b2b7101a621202f" | ||
"61db924c5ef9efa3bb2698095841603b7ac8a880329a927ecd4ad53a944b607a5ac2f3d15" | ||
"4e2748c188d7370d76be83fc204fdacf0f66b99dd760ba619ffac65eda1420c8a936dac5a" | ||
"599afaf4043b29ef2b65dc042724355b550875316c6fd", | ||
"", "", "0", 0, 132, true}, | ||
{15, IkeTestType::ikeV1AppBQuick, | ||
"63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", "", | ||
"933347a07de5782247dd36d1562ffe0eecade1ebaeaa476a5f578c34a9b2b7101a621202f" | ||
"61db924", | ||
"", "", "0", 0, 40, true}, | ||
{16, IkeTestType::ikeV1AppBQuick, | ||
"63e81194946ebd05df7df5ebf5d8750056bf1f1d", "", "", | ||
"933347a07de5782247dd36d1562ffe", "", "", "0", 0, 15, true}, | ||
}; | ||
|
||
#endif // ike_sha1_vectors_h__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/* vim: set ts=2 et sw=2 tw=80: */ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* This file is generated from sources in nss/gtests/common/wycheproof | ||
* automatically and should not be touched manually. | ||
* Generation is trigged by calling python3 genTestVectors.py */ | ||
|
||
#ifndef ike_sha256_vectors_h__ | ||
#define ike_sha256_vectors_h__ | ||
|
||
#include "testvectors_base/test-structs.h" | ||
|
||
const IkeTestVector kIkeSha256ProofVectors[] = { | ||
// these vectors are from this NIST samples | ||
{1, IkeTestType::ikeGxy, | ||
"a1ff3dc6cf9b4c04709943cb4ca1f1789bcf360b03f1d027de3ae8ee039e9155", "", "", | ||
"750c5c94b9c2ec20b68033e024dadf0fa87e8b48c6561b21c72478451a06583d", | ||
"b1dee62505b47b223bae14ce7a5b757402ad1587511618d09f94950d47f1d8d4ce86aca12" | ||
"d78db9854d86019ad735757ae79d8932ac0c7db842c85060150ca875ea5d47e3cfcb2a059" | ||
"22ebb7959d49b9797a2289676ee79a1d9a18b790f87e4771ddaf4be3376057a553162f68f" | ||
"e429aca73b07234543801ba2122b1bde82251770d05df813cf556a11ca4dc43ffcb85a97d" | ||
"bed16e2fda6985e07e31be6364899e63c507c7c616e5eb7765a53560f76772de43918ba07" | ||
"badfe85244dcdcd917cb065afb60e3b7e68b54dd94bfc7c31c8b752892781ed3cc4b7f28f" | ||
"bc0ab9af908f5ae1f09f893f80100a7b3135993161b51fbba3bbb24b9f88c6147de82cd6f" | ||
"0", | ||
"f0acfef2ad1f7add0eaafda78c1cf1097d9fc91cb04a7c145069ac426fd164cbe661b1dd2" | ||
"df0fb84e19512181f0d8ea50b7860845f332757a8e56d2a3b7be436b5718a2d49baa996a4" | ||
"616684a208c2d611cd65e605dca6e3d3f116859b4410fe13679696bb2e23c08a40c7e1316" | ||
"d54b4c9c0286701c221151b3642cb4112ca1a53e0e597a7e29c634caed86ca3c31973d37b" | ||
"4c346134fd6784cd99913feedf3d29d89a0a02a5a750f02f5738109dcc670bb27701fb59f" | ||
"78e83b76860c3fec079a1fc8c937ddb58ae7500422b7e49ce63759c65b6bc439381d56bcc" | ||
"159edede894b073841036ebfa050a5b3e7c876a3f18def26b1768a263ac66c9d83b680eb5" | ||
"e", | ||
"", 0, 0, true}, | ||
{2, IkeTestType::ikeV1, | ||
"750c5c94b9c2ec20b68033e024dadf0fa87e8b48c6561b21c72478451a06583d", | ||
"a1ff3dc6cf9b4c04709943cb4ca1f1789bcf360b03f1d027de3ae8ee039e9155", "", | ||
"a4f7ca7de913814813e3312099e7c943bd293483f387532330237f1b20957310", | ||
"6c6beb72631ddc3d", "b84e24b22cffbd14", "", 0, 0, true}, | ||
{3, IkeTestType::ikeV1, | ||
"750c5c94b9c2ec20b68033e024dadf0fa87e8b48c6561b21c72478451a06583d", | ||
"a1ff3dc6cf9b4c04709943cb4ca1f1789bcf360b03f1d027de3ae8ee039e9155", | ||
"a4f7ca7de913814813e3312099e7c943bd293483f387532330237f1b20957310", | ||
"1d4b705746c43b0a6fcbb8db33983c0f24ff6f8b6543e3779fed227c6067f004", | ||
"6c6beb72631ddc3d", "b84e24b22cffbd14", "", 1, 0, true}, | ||
{4, IkeTestType::ikeV1, | ||
"750c5c94b9c2ec20b68033e024dadf0fa87e8b48c6561b21c72478451a06583d", | ||
"a1ff3dc6cf9b4c04709943cb4ca1f1789bcf360b03f1d027de3ae8ee039e9155", | ||
"1d4b705746c43b0a6fcbb8db33983c0f24ff6f8b6543e3779fed227c6067f004", | ||
"03e6f16cd9ce9f64b5cdc5b34cca7163483ba5389a30afebef3d14640b0a815e", | ||
"6c6beb72631ddc3d", "b84e24b22cffbd14", "", 2, 0, true}, | ||
{5, IkeTestType::ikeV1Psk, "a0", "", "", | ||
"558a99b299773d267cf7c8ef073bf3b7af362c206c75a538403c5ef884d4cace", | ||
"ead9ced494868f41", "f1aff4f425a94f18", "", 0, 0, true}, | ||
{6, IkeTestType::ikeGxy, | ||
"0f4d257d7a58fc4545c7d7a88119eee5d5c9690c5b4c989171d3abbfd99d1d29", "", "", | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", | ||
"3f302be1abcb28e1", "8c332ee006064c9b", "", 0, 0, true}, | ||
{7, IkeTestType::ikeV2Rekey, | ||
"0b137d669b0947d7d026d593f0305ad401ff0c471357d695778a9c7f4b4869ec", | ||
"25f3b12d6f282739256e39bf54eda53b60ffcf379bb7bcc90c27b4c4c578616c", "", | ||
"2d63f6debc92048b4fef3889c4c99ca67d6496e0fac14a2bca9a2d6566ff2398", | ||
"3f302be1abcb28e1", "8c332ee006064c9b", "", 0, 0, true}, | ||
{8, IkeTestType::ikePlus, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"0b137d669b0947d7d026d593f0305ad401ff0c471357d695778a9c7f4b4869ece98aca531" | ||
"188d16041b3bb936d2dbb3b4993a6e768a809160de45d0283f273a6cdf6854379e31be72b" | ||
"8d3d1fa990cf9c5b015ca9f918a7df6253c958114a09d4e1c19bdcd4db14b29d98db1a74a" | ||
"d405c588662c14a04d0d36aa4ab55e90f8986d12d4aad", | ||
"", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"3f302be1abcb28e1" // Ni | ||
"8c332ee006064c9b" // Nr | ||
"40dac39e1e1a8640" // SPIi | ||
"8619a1cf9a6e4c07", // SPIr | ||
0, | ||
132, true}, | ||
{9, IkeTestType::ikePlus, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"0b137d669b0947d7d026d593f0305ad401ff0c471357d695778a9c7f4b4869ec", "", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"3f302be1abcb28e1" // Ni | ||
"8c332ee006064c9b" // Nr | ||
"40dac39e1e1a8640" // SPIi | ||
"8619a1cf9a6e4c07", // SPIr | ||
0, | ||
32, true}, | ||
{10, IkeTestType::ikePlus, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"0b137d669b0947d7d026d593f0305a", "", "", | ||
// seed_data is Ni || Nr || SPIi || SPIr | ||
// NOTE: there is no comma so the strings are concatenated together. | ||
"3f302be1abcb28e1" // Ni | ||
"8c332ee006064c9b" // Nr | ||
"40dac39e1e1a8640" // SPIi | ||
"8619a1cf9a6e4c07", // SPIr | ||
0, | ||
15, true}, | ||
// these vectors are self-generated | ||
{11, IkeTestType::ikeV1AppB, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"b10fff32cbeaa1e7afe6ab0b191e0bd63cd524849a4b56019146d232a24cf9af6b89494d2" | ||
"a360b06825db8bb0324c15cecf47fc0bc99e39bf1171a7f4bf1733dc49ef64c642e73b054" | ||
"b2e82456e34fa3c822da475e27e403b3da3929da50e6aa9e7f9252c68fa069b4b0edd374e" | ||
"80d35378c4f5e8ec285a1b169c92bbb5353d05ba94165", | ||
"", "", "", 0, 132, true}, | ||
{12, IkeTestType::ikeV1AppB, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"", 0, 32, true}, | ||
{13, IkeTestType::ikeV1AppB, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"5f00d1bd2c58ec224b1e6b71fa0f19", "", "", "", 0, 15, true}, | ||
{14, IkeTestType::ikeV1AppBQuick, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"b10fff32cbeaa1e7afe6ab0b191e0bd63cd524849a4b56019146d232a24cf9af59f18ed9a" | ||
"abbb2dbbafecf48d72a34a8f72fab2ff4f37e5c917288a78ce00933612e9531a7469995c7" | ||
"f7cc33c7627cac3efbc819330c4fe3bfa3788799630f37bcb74800d82bbebd17b1906e304" | ||
"a786f4f810c266c15be1a30576039c293272748d65966", | ||
"", "", "0", 0, 132, true}, | ||
{15, IkeTestType::ikeV1AppBQuick, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"b10fff32cbeaa1e7afe6ab0b191e0bd63cd524849a4b56019146d232a24cf9af", "", "", | ||
"0", 0, 32, true}, | ||
{16, IkeTestType::ikeV1AppBQuick, | ||
"5f00d1bd2c58ec224b1e6b71fa0f19a1faa7a193952c444411b47c1a9d8ba6fe", "", "", | ||
"b10fff32cbeaa1e7afe6ab0b191e0b", "", "", "0", 0, 15, true}, | ||
}; | ||
|
||
#endif // ike_sha256_vectors_h__ |
Oops, something went wrong.