From 471217f7f4a24a28b38fbafb7c257b6e0539811c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 8 Sep 2013 10:56:01 -0400 Subject: [PATCH] Minor fixes --- shamirssecret.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2