MBEDTLS_GET_UINT32_LE macro
Get the unsigned 32 bits integer corresponding to four bytes in little-endian order (LSB first).
Arguments
data
Base address of the memory to get the four bytes from.
offset
Offset from \p data of the first and least significant byte of the four bytes to build the 32 bits unsigned integer from.
![]()
#define MBEDTLS_GET_UINT32_LE(data, offset) \![]()
RK[i] = MBEDTLS_GET_UINT32_LE(key, i << 2);![]()
t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++;![]()
t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++;![]()
t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++;![]()
t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++;![]()
t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++;![]()
t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++;![]()
t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++;![]()
t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++;![]()
w[0][0] = MBEDTLS_GET_UINT32_LE(key, 0);![]()
w[0][1] = MBEDTLS_GET_UINT32_LE(key, 4);![]()
w[0][2] = MBEDTLS_GET_UINT32_LE(key, 8);![]()
w[0][3] = MBEDTLS_GET_UINT32_LE(key, 12);![]()
w[1][0] = MBEDTLS_GET_UINT32_LE(key, 16); ![]()
w[1][1] = MBEDTLS_GET_UINT32_LE(key, 20);![]()
w[1][2] = MBEDTLS_GET_UINT32_LE(key, 24); ![]()
w[1][3] = MBEDTLS_GET_UINT32_LE(key, 28);![]()
a = MBEDTLS_GET_UINT32_LE(input, 0);![]()
b = MBEDTLS_GET_UINT32_LE(input, 4);![]()
c = MBEDTLS_GET_UINT32_LE(input, 8);![]()
d = MBEDTLS_GET_UINT32_LE(input, 12);![]()
version = MBEDTLS_GET_UINT32_LE(storage_format->version, 0);