MBEDTLS_GET_UINT32_BE macro
Get the unsigned 32 bits integer corresponding to four bytes in big-endian order (MSB first).
Arguments
data
Base address of the memory to get the four bytes from.
offset
Offset from \p data of the first and most significant byte of the four bytes to build the 32 bits unsigned integer from.
![]()
#define MBEDTLS_GET_UINT32_BE(data, offset) \![]()
uint32_t i32 = MBEDTLS_GET_UINT32_BE(&input[i], 0);![]()
uint32_t x = MBEDTLS_GET_UINT32_BE(n, i << 2);![]()
uint32_t x = MBEDTLS_GET_UINT32_BE(y, 12);![]()
local.W[0] = MBEDTLS_GET_UINT32_BE(data, 0);![]()
local.W[1] = MBEDTLS_GET_UINT32_BE(data, 4);![]()
local.W[2] = MBEDTLS_GET_UINT32_BE(data, 8);![]()
local.W[3] = MBEDTLS_GET_UINT32_BE(data, 12);![]()
local.W[4] = MBEDTLS_GET_UINT32_BE(data, 16);![]()
local.W[5] = MBEDTLS_GET_UINT32_BE(data, 20);![]()
local.W[6] = MBEDTLS_GET_UINT32_BE(data, 24);![]()
local.W[7] = MBEDTLS_GET_UINT32_BE(data, 28);![]()
local.W[8] = MBEDTLS_GET_UINT32_BE(data, 32);![]()
local.W[9] = MBEDTLS_GET_UINT32_BE(data, 36);![]()
local.W[10] = MBEDTLS_GET_UINT32_BE(data, 40);![]()
local.W[11] = MBEDTLS_GET_UINT32_BE(data, 44);![]()
local.W[12] = MBEDTLS_GET_UINT32_BE(data, 48);![]()
local.W[13] = MBEDTLS_GET_UINT32_BE(data, 52);![]()
local.W[14] = MBEDTLS_GET_UINT32_BE(data, 56);![]()
local.W[15] = MBEDTLS_GET_UINT32_BE(data, 60);![]()
local.W[i] = MBEDTLS_GET_UINT32_BE(data, 4 * i);![]()
cookie_time = (unsigned long) MBEDTLS_GET_UINT32_BE(cookie, 0);![]()
lifetime = MBEDTLS_GET_UINT32_BE(msg, 0);