39 #ifndef ti_drivers_cryptoutils_utils_CryptoUtils__include 40 #define ti_drivers_cryptoutils_utils_CryptoUtils__include 101 const volatile void *
volatile buffer1,
102 size_t bufferByteLength);
133 const volatile uint32_t *
volatile buffer1,
134 size_t bufferByteLength);
256 CryptoUtils_Endianess endianess,
257 const void *lowerLimit,
258 const void *upperLimit);
void CryptoUtils_reverseBufferBytewise(void *buffer, size_t bufferByteLength)
Reverses the byte order in a buffer of a given length.
const uint8_t * CryptoUtils_limitOne
Limit value of 1.
const uint8_t * CryptoUtils_limitZero
Limit value of 0.
Definition: CryptoUtils.h:56
Definition: CryptoUtils.h:55
bool CryptoUtils_isNumberInRange(const void *number, size_t bitLength, CryptoUtils_Endianess endianess, const void *lowerLimit, const void *upperLimit)
Checks if number is within the range [lowerLimit, upperLimit)
void CryptoUtils_reverseCopy(const void *source, void *destination, size_t sourceLength)
Reverses and copies an array of bytes.
void CryptoUtils_memset(void *dest, size_t destSize, uint8_t val, size_t count)
Copies val into the first count bytes of the buffer pointed to by dest.
void CryptoUtils_reverseCopyPad(const void *source, uint32_t *destination, size_t sourceLength)
Reverses, copies, and pads an array of words.
bool CryptoUtils_buffersMatch(const volatile void *volatile buffer0, const volatile void *volatile buffer1, size_t bufferByteLength)
Compares two buffers for equality without branching.
bool CryptoUtils_isBufferAllZeros(const void *buffer, size_t bufferByteLength)
Check whether the provided buffer only contains 0x00 bytes.
void CryptoUtils_copyPad(const void *source, uint32_t *destination, size_t sourceLength)
Copies and pads an array of words.
CryptoUtils_Endianess
Indicates the endianess (byte order) of a multi-byte value.
Definition: CryptoUtils.h:53
bool CryptoUtils_buffersMatchWordAligned(const volatile uint32_t *volatile buffer0, const volatile uint32_t *volatile buffer1, size_t bufferByteLength)
Compares two buffers for equality word-by-word without branching.