From 896418f1795a1b5e97dad2bd28283618c3ebd0f1 Mon Sep 17 00:00:00 2001 From: Gregg Date: Tue, 21 Sep 2021 05:48:12 -0500 Subject: [PATCH] Revert "added version numbers for sodium and mbedtls" This reverts commit 53b6a7dfc35d0c04d6335e695c393b1a14e93d32. --- src/SRP.cpp | 5 +---- src/src.ino | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/SRP.cpp b/src/SRP.cpp index 2a5e185..d18259a 100644 --- a/src/SRP.cpp +++ b/src/SRP.cpp @@ -144,10 +144,7 @@ void SRP6A::createPublicKey(){ void SRP6A::getPrivateKey(){ uint8_t privateKey[32]; - randombytes_buf(privateKey,32); // generate 32 random bytes using libsodium (which uses the ESP32 hardware-based random number generator) - - for(int i=0;i<32;i++) - privateKey[i]=i+1; + randombytes_buf(privateKey,16); // generate 32 random bytes using libsodium (which uses the ESP32 hardware-based random number generator) mbedtls_mpi_read_binary(&b,privateKey,32); } diff --git a/src/src.ino b/src/src.ino index b4f4742..60385c0 100644 --- a/src/src.ino +++ b/src/src.ino @@ -3,24 +3,12 @@ // as well as compile and test from this point. This file is ignored when the library is included in other sketches. #include "HomeSpan.h" -#include -#include void setup() { Serial.begin(115200); homeSpan.setLogLevel(1); - - homeSpan.setStatusPin(5); - homeSpan.setControlPin(33); - - Serial.println(sodium_version_string()); - Serial.println(sodium_library_version_major()); - Serial.println(sodium_library_version_minor()); - char mb[64]; - mbedtls_version_get_string_full(mb); - Serial.println(mb); homeSpan.setHostNameSuffix("-lamp1"); homeSpan.setPortNum(1201);