Fix code formatting and document the fact that input arrays must be word

aligned
This commit is contained in:
cacu
2016-03-08 09:47:02 +01:00
parent 289a8e0340
commit eff564675d
2 changed files with 16 additions and 13 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ faster somewhat faster, but increases the code size. */
little-endian format for *all* arrays passed in and out of the public API. This includes public
and private keys, shared secrets, signatures and message hashes.
Using this switch reduces the amount of call stack memory used by uECC, since less intermediate
translations are required. Note that this will *only* work on native little-endian processors. */
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. */
#ifndef uECC_VLI_NATIVE_LITTLE_ENDIAN
#define uECC_VLI_NATIVE_LITTLE_ENDIAN 0
#endif