mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-06-05 21:14:51 +00:00
Fix for #148
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#include <uECC.h>
|
#include <uECC.h>
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
|
|
||||||
static int RNG(uint8_t *dest, unsigned size) {
|
static int RNG(uint8_t *dest, unsigned size) {
|
||||||
// Use the least-significant bits from the ADC for an unconnected pin (or connected to a source of
|
// Use the least-significant bits from the ADC for an unconnected pin (or connected to a source of
|
||||||
// random noise). This can take a long time to generate random data if the result of analogRead(0)
|
// random noise). This can take a long time to generate random data if the result of analogRead(0)
|
||||||
@@ -29,8 +27,6 @@ static int RNG(uint8_t *dest, unsigned size) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // extern "C"
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.print("Testing ecc\n");
|
Serial.print("Testing ecc\n");
|
||||||
@@ -82,4 +78,3 @@ void loop() {
|
|||||||
Serial.print("Shared secrets are identical\n");
|
Serial.print("Shared secrets are identical\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user