From: Matt Corallo Date: Sun, 8 Sep 2013 14:56:01 +0000 (-0400) Subject: Minor fixes X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=shamirs;a=commitdiff_plain;h=471217f7f4a24a28b38fbafb7c257b6e0539811c;hp=ed8291deca043685a7812398af58807214f5abd8 Minor fixes --- diff --git a/shamirssecret.h b/shamirssecret.h index d848040..6aceb11 100644 --- a/shamirssecret.h +++ b/shamirssecret.h @@ -17,13 +17,17 @@ * Place - Suite 330, Boston, MA 02111-1307 USA. */ +#ifndef IN_KERNEL #include +#else +#include +#endif #define P 256 /** * Calculates the Y coordinate that the point with the given X - * coefficients[0] == secret, the rest are random values + * coefficients[0] == secret, the rest are secure random values */ uint8_t calculateQ(uint8_t coefficients[], uint8_t shares_required, uint8_t x);