Add a new uECC_VLI_NATIVE_LITTLE_ENDIAN compile-time macro that enables

fully native little endian platforms interfacing with little endian byte
streams to avoid using additional stack space and pre and post byte
reversals
This commit is contained in:
cacu
2016-03-07 13:09:22 +01:00
parent 01f15fb6b3
commit 778effd967
2 changed files with 94 additions and 18 deletions
+7
View File
@@ -35,6 +35,13 @@ faster somewhat faster, but increases the code size. */
#define uECC_SQUARE_FUNC 0
#endif
/* uECC_VLI_NATIVE_LITTLE_ENDIAN - If enabled (defined as nonzero), this will enable native
little-endian format for all keys passed in and out of the public API. This will *only* work
on native little-endian processors. */
#ifndef uECC_VLI_NATIVE_LITTLE_ENDIAN
#define uECC_VLI_NATIVE_LITTLE_ENDIAN 0
#endif
/* Curve support selection. Set to 0 to remove that curve. */
#ifndef uECC_SUPPORTS_secp160r1
#define uECC_SUPPORTS_secp160r1 1