ESP-IDF-Old-Makefile-Fork/NewHopev2.ino

958 lines
56 KiB
Arduino
Raw Permalink Normal View History

2019-11-20 12:58:05 +00:00
#include <AES.h>
#include <AuthenticatedCipher.h>
#include <BigNumberUtil.h>
#include <BLAKE2b.h>
#include <BLAKE2s.h>
#include <BlockCipher.h>
#include <ChaCha.h>
#include <ChaChaPoly.h>
#include <Cipher.h>
#include <Crypto.h>
#include <CTR.h>
#include <Curve25519.h>
#include <EAX.h>
#include <Ed25519.h>
#include <GCM.h>
#include <GF128.h>
#include <GHASH.h>
#include <Hash.h>
#include <KeccakCore.h>
#include <NoiseSource.h>
#include <OMAC.h>
#include <P521.h>
#include <Poly1305.h>
#include <RNG.h>
#include <SHA256.h>
#include <SHA3.h>
#include <SHA512.h>
#include <SHAKE.h>
#include <XOF.h>
#include <XTS.h>
/*
Copyright (C) 2016 Southern Storm Software, Pty Ltd.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
/*
This example runs tests on the NewHope class to verify correct behaviour.
*/
#include <Crypto.h>
#include <NewHope.h>
#include <RNG.h>
#include <string.h>
#if defined(ESP8266) || defined(ESP32)
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#if !defined(__AVR__)
#define memcmp_P(a,b,c) memcmp((a), (b), (c))
#endif
#endif
// Test vectors that were generated by the reference C implementation.
static uint8_t const alice_random_data_ref[] PROGMEM = {
0x93, 0x4d, 0x60, 0xb3, 0x56, 0x24, 0xd7, 0x40, 0xb3, 0x0a, 0x7f, 0x22,
0x7a, 0xf2, 0xae, 0x7c, 0x67, 0x8e, 0x4e, 0x04, 0xe1, 0x3c, 0x5f, 0x50,
0x9e, 0xad, 0xe2, 0xb7, 0x9a, 0xea, 0x77, 0xe2, 0x3e, 0x2a, 0x2e, 0xa6,
0xc9, 0xc4, 0x76, 0xfc, 0x49, 0x37, 0xb0, 0x13, 0xc9, 0x93, 0xa7, 0x93,
0xd6, 0xc0, 0xab, 0x99, 0x60, 0x69, 0x5b, 0xa8, 0x38, 0xf6, 0x49, 0xda,
0x53, 0x9c, 0xa3, 0xd0
};
static uint8_t const alice_public_ref[] PROGMEM = {
0xa8, 0x57, 0xf3, 0xc1, 0x2d, 0x1e, 0xa4, 0x3c, 0xcd, 0x04, 0xeb, 0xc9,
0xed, 0x8d, 0x78, 0x53, 0x69, 0xe4, 0x7e, 0x76, 0x32, 0x5a, 0xac, 0x77,
0x88, 0xdc, 0x74, 0x98, 0x67, 0x64, 0x52, 0xdb, 0x77, 0x8e, 0x7d, 0x50,
0xd3, 0x97, 0xc5, 0xe1, 0x79, 0x4a, 0xdf, 0x25, 0x93, 0xdb, 0xc3, 0x22,
0xac, 0x21, 0x4c, 0x73, 0x37, 0xd3, 0xd8, 0x3a, 0xd7, 0xa8, 0x19, 0xa3,
0x63, 0x56, 0x53, 0xd3, 0x2e, 0x81, 0x33, 0xb4, 0xa5, 0x88, 0x8a, 0x0a,
0xe0, 0x22, 0x49, 0x7a, 0x10, 0x10, 0xa7, 0x1d, 0x37, 0xc6, 0x28, 0xa0,
0x5e, 0xe0, 0xe2, 0xa0, 0x32, 0x6d, 0x27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9c, 0xc1, 0xf4, 0x8b, 0x7c, 0x00, 0x71,
0xb2, 0xdf, 0x8b, 0x32, 0x08, 0xde, 0x3d, 0x04, 0xc6, 0xa2, 0x12, 0xfb,
0x7d, 0x44, 0xbe, 0x1d, 0x67, 0xf3, 0x05, 0x69, 0x4b, 0x3f, 0x96, 0xe5,
0x03, 0x8c, 0x6c, 0x0b, 0x34, 0x9a, 0x9e, 0x8c, 0x91, 0xd1, 0x16, 0x78,
0x0f, 0xf9, 0xc7, 0xdb, 0x60, 0x89, 0xed, 0x4c, 0x06, 0xb3, 0x4e, 0xda,
0xa8, 0x48, 0xbb, 0xff, 0xd9, 0x85, 0x42, 0x82, 0x7e, 0x53, 0x31, 0xbe
};
static uint8_t const bob_random_data_ref[] PROGMEM = {
0xba, 0xc5, 0xba, 0x88, 0x1d, 0xd3, 0x5c, 0x59, 0x71, 0x96, 0x70, 0x00,
0x46, 0x92, 0xd6, 0x75, 0xb8, 0x3c, 0x98, 0xdb, 0x6a, 0x0e, 0x55, 0x80,
0x0b, 0xaf, 0xeb, 0x7e, 0x70, 0x49, 0x1b, 0xf4
};
static uint8_t const bob_public_ref[] PROGMEM = {
0x49, 0xa5, 0x74, 0x02, 0xd4, 0x29, 0x88, 0xe2, 0x98, 0x08, 0xf7, 0x86,
0x59, 0x89, 0xa0, 0x00, 0xfa, 0x3b, 0x6a, 0x5d, 0x4f, 0xe6, 0x00, 0x9c,
0x58, 0x49, 0x0d, 0xb2, 0xaf, 0x40, 0x03, 0x69, 0x92, 0xd5, 0x3d, 0xc6,
0xe1, 0x33, 0x48, 0x72, 0x50, 0x72, 0xba, 0x65, 0xac, 0x64, 0x7a, 0xb9,
0x41, 0x9d, 0x50, 0xa2, 0xa2, 0xea, 0x94, 0x45, 0x42, 0x11, 0xd4, 0x1b,
0x0e, 0x6c, 0x2c, 0x7e, 0x20, 0xe6, 0x52, 0x69, 0x6d, 0xa3, 0x04, 0x93,
0x1d, 0x11, 0xb3, 0xf2, 0xa8, 0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0, 0xa3,
0x28, 0x08, 0xf1, 0xf1, 0x5d, 0x96, 0xb3, 0xfb, 0x94, 0xd7, 0xbd, 0x08,
0xaa, 0x38, 0x78, 0xe8, 0x41, 0x9a, 0xa9, 0x4e, 0x98, 0x6b, 0x91, 0x11,
0xb6, 0xfe, 0xb5, 0xff, 0x90, 0x37, 0x75, 0x7b, 0xc7, 0x31, 0x30, 0x6e,
0xdb, 0x0a, 0x9f, 0x09, 0xdf, 0x3d, 0x07, 0x54, 0x46, 0xab, 0xd1, 0xc8,
0x7a, 0xd6, 0x4a, 0x23, 0x60, 0xaf, 0x1b, 0xee, 0x5f, 0x6e, 0xd9, 0xe9,
0x4c, 0x4e, 0x40, 0x21, 0x9c, 0x1c, 0x65, 0xe7, 0x50, 0x87, 0x6a, 0x38,
0x72, 0x07, 0x1f, 0xad, 0xf8, 0x58, 0x86, 0xe3, 0x95, 0xb2, 0x57, 0x6a,
0xa1, 0xab, 0xeb, 0xc5, 0x68, 0x61, 0xcd, 0xa9, 0xc6, 0x6d, 0x56, 0xc1,
0xc1, 0x42, 0x9d, 0xa8, 0xd9, 0x12, 0x0f, 0x81, 0x83, 0x2b, 0x16, 0x3b,
0x6b, 0x18, 0xdb, 0xa5, 0xdd, 0xd3, 0x25, 0xfd
};
static uint8_t const shared_secret_ref[] PROGMEM = {
0x47, 0x25, 0xa8, 0x62, 0x6c, 0x73, 0xa2, 0xf8, 0x3f, 0x74, 0xfc, 0x1a,
0x8c, 0x29, 0x5e, 0x1a, 0x2e, 0x7f, 0x49, 0x71, 0x4e, 0x25, 0xd5, 0x0f,
0x9d, 0xc9, 0xa5, 0x35, 0x04, 0xc5, 0x55, 0x82
};
static uint8_t const alice_random_data_torref[] PROGMEM = {
0x0f, 0xdb, 0xb1, 0x16, 0x9f, 0x78, 0x56, 0x69, 0xa4, 0x06, 0x10, 0x33,
0x36, 0xa4, 0xa1, 0xd9, 0x3f, 0xfa, 0x24, 0x26, 0x99, 0x70, 0xf5, 0x16,
0x01, 0xdb, 0x53, 0x38, 0xad, 0x82, 0xd4, 0x6d, 0xc7, 0x30, 0x0e, 0x2d,
0x89, 0x4b, 0x0e, 0xaa, 0x40, 0xa6, 0xab, 0x25, 0x45, 0x06, 0xd8, 0xc1,
0x17, 0x6a, 0x33, 0xc4, 0xa1, 0xb2, 0x87, 0x96, 0x04, 0xb1, 0xb8, 0x0d,
0xf4, 0x8d, 0x31, 0xdd
};
static uint8_t const alice_public_torref[] PROGMEM = {
0xe5, 0x61, 0x8e, 0x97, 0xad, 0x1e, 0x54, 0x32, 0xa0, 0x3d, 0x28, 0xf1,
0xdd, 0xae, 0xd6, 0x43, 0x51, 0x9a, 0x09, 0xb8, 0x05, 0xfc, 0x21, 0xb1,
0x08, 0xcf, 0xe8, 0x4a, 0x82, 0x12, 0x10, 0xf0, 0x76, 0x2a, 0x9f, 0xba,
0x27, 0x28, 0x71, 0x7b, 0xb8, 0xa9, 0x9a, 0x52, 0xe7, 0xb1, 0x62, 0xfd,
0xac, 0x88, 0x22, 0x47, 0xba, 0xc0, 0x12, 0x51, 0x24, 0x5c, 0xfd, 0xca,
0xb2, 0x50, 0x54, 0xcc, 0x25, 0xcd, 0x8a, 0xbc, 0xc9, 0x50, 0x00, 0x22,
0x4b, 0x13, 0x08, 0x70, 0x97, 0xcd, 0x8b, 0x96, 0xd9, 0x07, 0xd4, 0xad,
0xc0, 0x17, 0x3b, 0xea, 0x91, 0x19, 0x48, 0x89, 0x44, 0xce, 0xa7, 0xe2,
0x74, 0x71, 0x71, 0x2c, 0x42, 0xea, 0x01, 0x20, 0x2e, 0x84, 0x1c, 0xc0,
0xcb, 0x73, 0x78, 0x81, 0x31, 0xcb, 0x50, 0xfa, 0xf2, 0x0d, 0x67, 0xe1,
0xd3, 0x17, 0x1b, 0xe8, 0x75, 0x99, 0xc1, 0x4b, 0x27, 0xa0, 0x5c, 0xb6,
0x21, 0x95, 0x61, 0xcc, 0xb4, 0x99, 0xf8, 0x01, 0x74, 0x56, 0xda, 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, 0xdb, 0x6b, 0x3c, 0x42, 0xe9, 0x32, 0x2c, 0x62,
0x51, 0xef, 0x70, 0x9d, 0xd4, 0x5c, 0x75, 0x19, 0x9b, 0x42, 0x63, 0x5a,
0x80, 0x0a, 0xdc, 0x77, 0x47, 0x49, 0xea, 0x6d, 0x1a, 0x12, 0xec, 0xb3,
0xdf, 0xd2, 0x17, 0xb8, 0x64, 0x83, 0xb8, 0xe1, 0x6d, 0x28, 0x22, 0x65,
0xd8, 0x1b, 0x70, 0x72, 0x80, 0x2d, 0xde, 0x56, 0xc6, 0x3d, 0x58, 0x36,
0x76, 0x43, 0xdd, 0xc4, 0x85, 0x68, 0xa9, 0x97, 0x00, 0x5d, 0xc3, 0x31,
0x94, 0x51, 0x39, 0xa6, 0x7f, 0x25, 0xf6, 0x18, 0x78, 0xc6, 0xae, 0xbc,
0x22, 0x55, 0xda, 0x36, 0xd6, 0xd1, 0xc4, 0xf1, 0x3c, 0x8c, 0x87, 0x34,
0x2c, 0xf8, 0xcb, 0x6e, 0x34, 0x65, 0x89, 0x8b, 0x1f, 0x53, 0xa9, 0x52,
0x10, 0x1a, 0x4e, 0x71, 0x25, 0x7a, 0x94, 0xbd, 0x63, 0xed, 0xf3, 0xb9,
0x28, 0x25, 0xa0, 0x85, 0x88, 0x5a, 0x40, 0x6e, 0x79, 0x18, 0xcb, 0x67,
0x5e, 0x60, 0xee, 0xd8, 0x3b, 0x7f, 0xd0, 0xa6, 0x93, 0x59, 0x98, 0x26,
0xab, 0x67, 0x52, 0xd6, 0x54, 0x22, 0xa4, 0xad, 0x84, 0x77, 0x36, 0x54,
0x26, 0x12, 0xc5, 0xdd, 0x14, 0x99, 0x6a, 0x35, 0x6c, 0x85, 0x86, 0xdc,
0xc1, 0x93, 0x26, 0x57, 0x15, 0xc0, 0x83, 0x95, 0xee, 0xd4, 0x32, 0x3d,
0x8a, 0x20, 0xb2, 0xd9, 0xb0, 0x8f, 0x55, 0x40, 0x0a, 0x1b, 0x2d, 0x5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f7, 0xff, 0x52, 0x4a, 0x9a, 0xd4
};
static uint8_t const bob_random_data_torref[] PROGMEM = {
0x0d, 0x39, 0x9d, 0xc9, 0x1d, 0x85, 0x30, 0xb7, 0x2c, 0x5d, 0x9a, 0x99,
0x20, 0xf3, 0x3b, 0x43, 0x33, 0x1b, 0x98, 0x3b, 0x95, 0x04, 0x7f, 0x96,
0xb5, 0xb0, 0x99, 0xbe, 0x39, 0x93, 0x55, 0xce
};
static uint8_t const bob_public_torref[] PROGMEM = {
0x1e, 0x21, 0x5d, 0x83, 0x04, 0x59, 0x8e, 0xf2, 0x07, 0xd3, 0xc2, 0x51,
0xa2, 0x3b, 0x6b, 0xeb, 0x1c, 0xc4, 0x80, 0x74, 0x0c, 0xdb, 0xd4, 0xfc,
0xc5, 0x86, 0x7a, 0x8a, 0x9e, 0xaa, 0xfa, 0x22, 0x6e, 0x86, 0xba, 0xcf,
0x63, 0x33, 0x76, 0x6c, 0x1e, 0xb0, 0x13, 0x0d, 0x2d, 0x80, 0xf8, 0x3c,
0x6b, 0xcd, 0x24, 0xa6, 0x0b, 0xda, 0x7d, 0x77, 0x27, 0x68, 0xdf, 0xb3,
0x55, 0x19, 0x22, 0x90, 0x1d, 0x46, 0xe5, 0xfb, 0x64, 0x6f, 0xdf, 0x6d,
0xc7, 0xa4, 0xc0, 0x7d, 0x8a, 0xb6, 0xd7, 0xa2, 0x07, 0x9b, 0xd2, 0x72,
0x18, 0xe1, 0x55, 0xcb, 0xac, 0x86, 0x0e, 0x2c, 0xa1, 0xeb, 0xa1, 0x7b,
0x18, 0x61, 0xa7, 0x00, 0xfb, 0xd9, 0xb1, 0x61, 0xb9, 0xe1, 0xd7, 0xec,
0x3a, 0x71, 0x61, 0x4a, 0x34, 0xe2, 0x8a, 0x34, 0x1a, 0x36, 0x85, 0x82,
0x51, 0x2b, 0x12, 0x51, 0x52, 0x7c, 0xb2, 0x0b, 0xff, 0xb5, 0x64, 0x28,
0x92, 0xe0, 0x02, 0xac, 0x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50,
0x77, 0x00, 0x93, 0xb0, 0xbd, 0xb2, 0xc8, 0x15, 0x3e, 0xb4, 0xad, 0xd2,
0x45, 0x04, 0x25, 0xba, 0x0c, 0x16, 0xcc, 0xc2, 0x20, 0xa9, 0x9e, 0x34,
0x44, 0x15, 0x64, 0xfb, 0x52, 0xc5, 0xfb, 0xc5, 0xd1, 0x2b, 0xea, 0xa0,
0x20, 0x2d, 0xfb, 0x25, 0x3c, 0x90, 0x53, 0x7b, 0xb8, 0x39, 0x37, 0xfa,
0x0c, 0x43, 0x82, 0x3c, 0x2e, 0x62, 0x51, 0xda
};
static uint8_t const shared_secret_torref[] PROGMEM = {
0x5e, 0x29, 0x90, 0x76, 0xaf, 0x0f, 0xe2, 0x1b, 0xf8, 0x83, 0xfd, 0x1a,
0xee, 0xd8, 0xd4, 0x79, 0x62, 0x31, 0x0b, 0x6d, 0x46, 0x96, 0x50, 0xe8,
0x3c, 0xfb, 0x28, 0xcc, 0xda, 0xe6, 0x36, 0x0c
};
uint8_t buffer[2048];
uint8_t random_data[64];
NewHopePrivateKey alice_private;
/* NAHRADENE:
yyxNewHopePrivateKey alice_private;
*/
void testNewHopeRandom()
{
unsigned long start;
unsigned long elapsed;
Serial.println("Random vector tests:");
Serial.println();
Serial.print("keygen ref ... ");
start = micros();
NewHope::keygen(buffer, alice_private);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
Serial.print("sharedb ... ");
start = micros();
NewHope::sharedb(random_data, buffer, buffer);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
Serial.print("shareda ... ");
start = micros();
NewHope::shareda(buffer, alice_private, buffer);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
if (memcmp(random_data, buffer, 32) == 0)
Serial.println("shared secrets match");
else
Serial.println("shared secrets do not match");
Serial.println();
Serial.print("keygen torref ... ");
start = micros();
NewHope::keygen(buffer, alice_private, NewHope::Torref);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
Serial.print("sharedb ... ");
start = micros();
NewHope::sharedb(random_data, buffer, buffer, NewHope::Torref);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
Serial.print("shareda ... ");
start = micros();
NewHope::shareda(buffer, alice_private, buffer);
elapsed = micros() - start;
Serial.print(elapsed);
Serial.println(" us");
if (memcmp(random_data, buffer, 32) == 0)
Serial.println("shared secrets match");
else
Serial.println("shared secrets do not match");
Serial.println();
}
void testNewHopeFixed()
{
unsigned long start;
unsigned long elapsed;
Serial.println("Fixed vector tests:");
Serial.println();
Serial.print("keygen ref ... ");
start = micros();
memcpy_P(random_data, alice_random_data_ref, 64);
NewHope::keygen(buffer, alice_private, NewHope::Ref, random_data);
elapsed = micros() - start;
if (memcmp_P(buffer, alice_public_ref, 1824) == 0)
Serial.print("ok ... ");
else
Serial.print("fail ... ");
Serial.print(elapsed);
Serial.println(" us");
Serial.print("sharedb ... ");
start = micros();
memcpy_P(random_data, bob_random_data_ref, 32);
memcpy_P(buffer, alice_public_ref, 1824);
NewHope::sharedb(random_data, buffer, buffer, NewHope::Ref, random_data);
elapsed = micros() - start;
bool ok = true;
if (memcmp_P(buffer, bob_public_ref, 2048) != 0) {
Serial.print("public fail ... ");
ok = false;
}
if (memcmp_P(random_data, shared_secret_ref, 32) != 0) {
Serial.print("shared fail ... ");
ok = false;
}
if (ok)
Serial.print("ok ... ");
Serial.print(elapsed);
Serial.println(" us");
Serial.print("shareda ... ");
start = micros();
memcpy_P(buffer, bob_public_ref, 2048);
NewHope::shareda(buffer, alice_private, buffer);
elapsed = micros() - start;
if (memcmp_P(buffer, shared_secret_ref, 32) == 0)
Serial.print("ok ... ");
else
Serial.print("fail ... ");
Serial.print(elapsed);
Serial.println(" us");
Serial.println();
Serial.print("keygen torref ... ");
start = micros();
memcpy_P(random_data, alice_random_data_torref, 64);
NewHope::keygen(buffer, alice_private, NewHope::Torref, random_data);
elapsed = micros() - start;
if (memcmp_P(buffer, alice_public_torref, 1824) == 0)
Serial.print("ok ... ");
else
Serial.print("fail ... ");
Serial.print(elapsed);
Serial.println(" us");
Serial.print("sharedb ... ");
start = micros();
memcpy_P(random_data, bob_random_data_torref, 32);
memcpy_P(buffer, alice_public_torref, 1824);
NewHope::sharedb(random_data, buffer, buffer, NewHope::Torref, random_data);
elapsed = micros() - start;
ok = true;
if (memcmp_P(buffer, bob_public_torref, 2048) != 0) {
Serial.print("public fail ... ");
ok = false;
}
if (memcmp_P(random_data, shared_secret_torref, 32) != 0) {
Serial.print("shared fail ... ");
ok = false;
}
if (ok)
Serial.print("ok ... ");
Serial.print(elapsed);
Serial.println(" us");
Serial.print("shareda ... ");
start = micros();
memcpy_P(buffer, bob_public_torref, 2048);
NewHope::shareda(buffer, alice_private, buffer);
elapsed = micros() - start;
if (memcmp_P(buffer, shared_secret_torref, 32) == 0)
Serial.print("ok ... ");
else
Serial.print("fail ... ");
Serial.print(elapsed);
Serial.println(" us");
}
void setup()
{
Serial.begin(9600);
// Start the random number generator. We don't initialise a noise
// source here because we don't need one for testing purposes.
// Real applications should of course use a proper noise source.
RNG.begin("TestNewHope 1.0");
// Perform the tests.
Serial.println();
testNewHopeRandom();
testNewHopeFixed();
}
void loop()
{
}