X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fecdhtest_cavs.h;h=fee701185bb65be50ddd1d86cc8bad95ae488a6e;hp=02621c6fb88affe1bce8b264d0ca197de2d3582b;hb=b2b3024e0eef58589f7a49ebd48da98d4564a348;hpb=61f6774e9a7b49244b81c7a0693db32c9303a93e diff --git a/test/ecdhtest_cavs.h b/test/ecdhtest_cavs.h index 02621c6fb8..fee701185b 100644 --- a/test/ecdhtest_cavs.h +++ b/test/ecdhtest_cavs.h @@ -1,10 +1,19 @@ +/* + * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + #ifndef ECDHTEST_CAVS_H #define ECDHTEST_CAVS_H -/* +/* * co-factor ECDH KATs for NIST SP800-56A - * http://csrc.nist.gov/groups/STM/cavp/component-testing.html#ecc-cdh - * $ sha256sum KAS_ECC_CDH_PrimitiveTest.txt + * http://csrc.nist.gov/groups/STM/cavp/component-testing.html#ECCCDH + * $ sha256sum KAS_ECC_CDH_PrimitiveTest.txt * 456068d3f8aad8ac62a03d19ed3173f00ad51f42b51aeab4753c20f30c01cf23 KAS_ECC_CDH_PrimitiveTest.txt */ @@ -19,6 +28,7 @@ typedef struct { } ecdh_cavs_kat_t; static const ecdh_cavs_kat_t ecdh_cavs_kats[] = { + /* curves over prime fields go here */ { NID_X9_62_prime192v1, "42ea6dd9969dd2a61fea1aac7f8e98edcc896c6e55857cc0", "dfbe5d7c61fac88b11811bde328e8a0d12bf01a9d204b523", @@ -1345,6 +1355,7 @@ static const ecdh_cavs_kat_t ecdh_cavs_kats[] = { "b4411cda7a0785b15d149ed301a3697062f42da237aa7f07e0af3fd00eb1800d" "9c41" } #ifndef OPENSSL_NO_EC2M + /* curves over binary fields go here */ , { NID_sect163k1, "0000000574236f1428c432130946783a5b3aabb6c27ea5d6", "00000007908c251b8da021cbac281f123f7af4fac5b3dbb8", @@ -4298,4 +4309,4 @@ static const ecdh_cavs_kat_t ecdh_cavs_kats[] = { #endif }; -#endif /* ECDHTEST_KAVS_H */ +#endif /* ECDHTEST_CAVS_H */