Skip to content

Commit

Permalink
Add note that uECC_VLI_NATIVE_LITTLE_ENDIAN affects key compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
kmackay committed May 21, 2017
1 parent 899a439 commit d037ec8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uECC.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ Using this switch reduces the amount of call stack memory used by uECC, since le
translations are required.
Note that this will *only* work on native little-endian processors and it will treat the uint8_t
arrays passed into the public API as word arrays, therefore requiring the provided byte arrays
to be word aligned on architectures that do not support unaligned accesses. */
to be word aligned on architectures that do not support unaligned accesses.
IMPORTANT: Keys and signatures generated with uECC_VLI_NATIVE_LITTLE_ENDIAN=1 are incompatible
with keys and signatures generated with uECC_VLI_NATIVE_LITTLE_ENDIAN=0; all parties must use
the same endianness. */
#ifndef uECC_VLI_NATIVE_LITTLE_ENDIAN
#define uECC_VLI_NATIVE_LITTLE_ENDIAN 0
#endif
Expand Down

0 comments on commit d037ec8

Please sign in to comment.