1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Compiling the Crypto library on a host system

This commit is contained in:
Rhys Weatherley
2016-03-17 19:19:14 +10:00
parent 8cd6916fe8
commit 72715b172b
15 changed files with 598 additions and 13 deletions

View File

@@ -57,7 +57,7 @@ void bytesFromString(uint8_t *x, size_t xsize, const char *str)
{
uint8_t ch;
size_t posn;
memset(x, 0, sizeof(limb_t) * xsize);
memset(x, 0, xsize);
while ((ch = pgm_read_byte((uint8_t *)str)) != '\0') {
if (ch >= '0' && ch <= '9') {
// Quick and simple method to multiply by 10 and add the new digit.