mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-11 02:07:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user