Lines Matching refs:offset
134 #define MBEDTLS_GET_UINT32_BE( data , offset ) \ argument
136 ( (uint32_t) ( data )[( offset ) ] << 24 ) \
137 | ( (uint32_t) ( data )[( offset ) + 1] << 16 ) \
138 | ( (uint32_t) ( data )[( offset ) + 2] << 8 ) \
139 | ( (uint32_t) ( data )[( offset ) + 3] ) \
153 #define MBEDTLS_PUT_UINT32_BE( n, data, offset ) \ argument
155 ( data )[( offset ) ] = MBEDTLS_BYTE_3( n ); \
156 ( data )[( offset ) + 1] = MBEDTLS_BYTE_2( n ); \
157 ( data )[( offset ) + 2] = MBEDTLS_BYTE_1( n ); \
158 ( data )[( offset ) + 3] = MBEDTLS_BYTE_0( n ); \
172 #define MBEDTLS_GET_UINT32_LE( data, offset ) \ argument
174 ( (uint32_t) ( data )[( offset ) ] ) \
175 | ( (uint32_t) ( data )[( offset ) + 1] << 8 ) \
176 | ( (uint32_t) ( data )[( offset ) + 2] << 16 ) \
177 | ( (uint32_t) ( data )[( offset ) + 3] << 24 ) \
191 #define MBEDTLS_PUT_UINT32_LE( n, data, offset ) \ argument
193 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
194 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
195 ( data )[( offset ) + 2] = MBEDTLS_BYTE_2( n ); \
196 ( data )[( offset ) + 3] = MBEDTLS_BYTE_3( n ); \
210 #define MBEDTLS_GET_UINT16_LE( data, offset ) \ argument
212 ( (uint16_t) ( data )[( offset ) ] ) \
213 | ( (uint16_t) ( data )[( offset ) + 1] << 8 ) \
227 #define MBEDTLS_PUT_UINT16_LE( n, data, offset ) \ argument
229 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
230 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
244 #define MBEDTLS_GET_UINT16_BE( data, offset ) \ argument
246 ( (uint16_t) ( data )[( offset ) ] << 8 ) \
247 | ( (uint16_t) ( data )[( offset ) + 1] ) \
261 #define MBEDTLS_PUT_UINT16_BE( n, data, offset ) \ argument
263 ( data )[( offset ) ] = MBEDTLS_BYTE_1( n ); \
264 ( data )[( offset ) + 1] = MBEDTLS_BYTE_0( n ); \
278 #define MBEDTLS_GET_UINT24_BE( data , offset ) \ argument
280 ( (uint32_t) ( data )[( offset ) ] << 16 ) \
281 | ( (uint32_t) ( data )[( offset ) + 1] << 8 ) \
282 | ( (uint32_t) ( data )[( offset ) + 2] ) \
296 #define MBEDTLS_PUT_UINT24_BE( n, data, offset ) \ argument
298 ( data )[( offset ) ] = MBEDTLS_BYTE_2( n ); \
299 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
300 ( data )[( offset ) + 2] = MBEDTLS_BYTE_0( n ); \
314 #define MBEDTLS_GET_UINT24_LE( data, offset ) \ argument
316 ( (uint32_t) ( data )[( offset ) ] ) \
317 | ( (uint32_t) ( data )[( offset ) + 1] << 8 ) \
318 | ( (uint32_t) ( data )[( offset ) + 2] << 16 ) \
332 #define MBEDTLS_PUT_UINT24_LE( n, data, offset ) \ argument
334 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
335 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
336 ( data )[( offset ) + 2] = MBEDTLS_BYTE_2( n ); \
350 #define MBEDTLS_GET_UINT64_BE( data, offset ) \ argument
352 ( (uint64_t) ( data )[( offset ) ] << 56 ) \
353 | ( (uint64_t) ( data )[( offset ) + 1] << 48 ) \
354 | ( (uint64_t) ( data )[( offset ) + 2] << 40 ) \
355 | ( (uint64_t) ( data )[( offset ) + 3] << 32 ) \
356 | ( (uint64_t) ( data )[( offset ) + 4] << 24 ) \
357 | ( (uint64_t) ( data )[( offset ) + 5] << 16 ) \
358 | ( (uint64_t) ( data )[( offset ) + 6] << 8 ) \
359 | ( (uint64_t) ( data )[( offset ) + 7] ) \
373 #define MBEDTLS_PUT_UINT64_BE( n, data, offset ) \ argument
375 ( data )[( offset ) ] = MBEDTLS_BYTE_7( n ); \
376 ( data )[( offset ) + 1] = MBEDTLS_BYTE_6( n ); \
377 ( data )[( offset ) + 2] = MBEDTLS_BYTE_5( n ); \
378 ( data )[( offset ) + 3] = MBEDTLS_BYTE_4( n ); \
379 ( data )[( offset ) + 4] = MBEDTLS_BYTE_3( n ); \
380 ( data )[( offset ) + 5] = MBEDTLS_BYTE_2( n ); \
381 ( data )[( offset ) + 6] = MBEDTLS_BYTE_1( n ); \
382 ( data )[( offset ) + 7] = MBEDTLS_BYTE_0( n ); \
396 #define MBEDTLS_GET_UINT64_LE( data, offset ) \ argument
398 ( (uint64_t) ( data )[( offset ) + 7] << 56 ) \
399 | ( (uint64_t) ( data )[( offset ) + 6] << 48 ) \
400 | ( (uint64_t) ( data )[( offset ) + 5] << 40 ) \
401 | ( (uint64_t) ( data )[( offset ) + 4] << 32 ) \
402 | ( (uint64_t) ( data )[( offset ) + 3] << 24 ) \
403 | ( (uint64_t) ( data )[( offset ) + 2] << 16 ) \
404 | ( (uint64_t) ( data )[( offset ) + 1] << 8 ) \
405 | ( (uint64_t) ( data )[( offset ) ] ) \
419 #define MBEDTLS_PUT_UINT64_LE( n, data, offset ) \ argument
421 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
422 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
423 ( data )[( offset ) + 2] = MBEDTLS_BYTE_2( n ); \
424 ( data )[( offset ) + 3] = MBEDTLS_BYTE_3( n ); \
425 ( data )[( offset ) + 4] = MBEDTLS_BYTE_4( n ); \
426 ( data )[( offset ) + 5] = MBEDTLS_BYTE_5( n ); \
427 ( data )[( offset ) + 6] = MBEDTLS_BYTE_6( n ); \
428 ( data )[( offset ) + 7] = MBEDTLS_BYTE_7( n ); \