Skip to content

Commit d037ec8

Browse files
committed
Add note that uECC_VLI_NATIVE_LITTLE_ENDIAN affects key compatiblity
1 parent 899a439 commit d037ec8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

uECC.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ Using this switch reduces the amount of call stack memory used by uECC, since le
4444
translations are required.
4545
Note that this will *only* work on native little-endian processors and it will treat the uint8_t
4646
arrays passed into the public API as word arrays, therefore requiring the provided byte arrays
47-
to be word aligned on architectures that do not support unaligned accesses. */
47+
to be word aligned on architectures that do not support unaligned accesses.
48+
IMPORTANT: Keys and signatures generated with uECC_VLI_NATIVE_LITTLE_ENDIAN=1 are incompatible
49+
with keys and signatures generated with uECC_VLI_NATIVE_LITTLE_ENDIAN=0; all parties must use
50+
the same endianness. */
4851
#ifndef uECC_VLI_NATIVE_LITTLE_ENDIAN
4952
#define uECC_VLI_NATIVE_LITTLE_ENDIAN 0
5053
#endif

0 commit comments

Comments
 (0)