#include <twl/aes.h>
void AES_SwapEndianEach128(const void* src, void* dst, u32 size);
| src | Pointer to the source data to copy. |
|---|---|
| dst | Pointer to the destination buffer where the data will be copied.. This can specify the same pointer as src. |
| size | Copy size. |
None.
Copies a byte array one byte at a time, reversing the order of each 16-byte chunk. The fractional portion is copied in reverse order, but the length reversed is the length of the fractional portion instead of a 16-byte length.
The input and output values of the TWL-SDK AES library are not compatible with the standard AES algorithm, but by adding certain pre- and post-processing operations, standards-compatible encryption and decryption is possible. For details, see the ctr-compatible demo / ccm-compatible demo.
2007/12/25 Initial version.
CONFIDENTIAL