Lines Matching refs:offset
31 void mbedtls_unaligned_access(int size, int offset)
47 r = mbedtls_get_unaligned_uint16(x + offset);
50 r = mbedtls_get_unaligned_uint32(x + offset);
53 r = mbedtls_get_unaligned_uint64(x + offset);
62 memcpy(&raw_aligned_64, ((uint8_t *) &raw) + offset, size / 8);
81 x[i + offset] = 0xff;
89 mbedtls_put_unaligned_uint16(x + offset, r);
92 mbedtls_put_unaligned_uint32(x + offset, r);
95 mbedtls_put_unaligned_uint64(x + offset, r);
243 void unaligned_access_endian_aware(int size, int offset, int big_endian)
246 TEST_ASSERT(offset >= 0 && offset < 8);
260 read = MBEDTLS_GET_UINT16_BE(x, offset);
263 read = MBEDTLS_GET_UINT24_BE(x, offset);
266 read = MBEDTLS_GET_UINT32_BE(x, offset);
269 read = MBEDTLS_GET_UINT64_BE(x, offset);
275 read = MBEDTLS_GET_UINT16_LE(x, offset);
278 read = MBEDTLS_GET_UINT24_LE(x, offset);
281 read = MBEDTLS_GET_UINT32_LE(x, offset);
284 read = MBEDTLS_GET_UINT64_LE(x, offset);
292 uint64_t b = x[i + offset];
302 x[i + offset] = 0xff;
308 MBEDTLS_PUT_UINT16_BE(read, x, offset);
311 MBEDTLS_PUT_UINT24_BE(read, x, offset);
314 MBEDTLS_PUT_UINT32_BE(read, x, offset);
317 MBEDTLS_PUT_UINT64_BE(read, x, offset);
323 MBEDTLS_PUT_UINT16_LE(read, x, offset);
326 MBEDTLS_PUT_UINT24_LE(read, x, offset);
329 MBEDTLS_PUT_UINT32_LE(read, x, offset);
332 MBEDTLS_PUT_UINT64_LE(read, x, offset);