Update ecdh.c

This commit is contained in:
kokke
2017-12-05 14:41:18 +01:00
committed by GitHub
parent 41beef69ca
commit 3499d33614

6
ecdh.c
View File

@@ -58,7 +58,11 @@
#include <assert.h>
#endif
/* Use (some) constant-time operations? */
/* Use (some) constant-time operations?
NOTE: The library is _not_ capable of operating in constant-time and leaks information via timing.
Even if all operations are written const-time-style, it requires the hardware is able to multiply in constant time.
Multiplication on ARM Cortex-M processors takes a variable number of cycles depending on the operands...
*/
#ifndef CONST_TIME
#define CONST_TIME 0
#endif