Lines Matching refs:offset
79 #define MBEDTLS_GET_UINT32_BE( data , offset ) \ argument
81 ( (uint32_t) ( data )[( offset ) ] << 24 ) \
82 | ( (uint32_t) ( data )[( offset ) + 1] << 16 ) \
83 | ( (uint32_t) ( data )[( offset ) + 2] << 8 ) \
84 | ( (uint32_t) ( data )[( offset ) + 3] ) \
98 #define MBEDTLS_PUT_UINT32_BE( n, data, offset ) \ argument
100 ( data )[( offset ) ] = MBEDTLS_BYTE_3( n ); \
101 ( data )[( offset ) + 1] = MBEDTLS_BYTE_2( n ); \
102 ( data )[( offset ) + 2] = MBEDTLS_BYTE_1( n ); \
103 ( data )[( offset ) + 3] = MBEDTLS_BYTE_0( n ); \
117 #define MBEDTLS_GET_UINT32_LE( data, offset ) \ argument
119 ( (uint32_t) ( data )[( offset ) ] ) \
120 | ( (uint32_t) ( data )[( offset ) + 1] << 8 ) \
121 | ( (uint32_t) ( data )[( offset ) + 2] << 16 ) \
122 | ( (uint32_t) ( data )[( offset ) + 3] << 24 ) \
136 #define MBEDTLS_PUT_UINT32_LE( n, data, offset ) \ argument
138 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
139 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
140 ( data )[( offset ) + 2] = MBEDTLS_BYTE_2( n ); \
141 ( data )[( offset ) + 3] = MBEDTLS_BYTE_3( n ); \
155 #define MBEDTLS_GET_UINT16_LE( data, offset ) \ argument
157 ( (uint16_t) ( data )[( offset ) ] ) \
158 | ( (uint16_t) ( data )[( offset ) + 1] << 8 ) \
172 #define MBEDTLS_PUT_UINT16_LE( n, data, offset ) \ argument
174 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
175 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
189 #define MBEDTLS_GET_UINT16_BE( data, offset ) \ argument
191 ( (uint16_t) ( data )[( offset ) ] << 8 ) \
192 | ( (uint16_t) ( data )[( offset ) + 1] ) \
206 #define MBEDTLS_PUT_UINT16_BE( n, data, offset ) \ argument
208 ( data )[( offset ) ] = MBEDTLS_BYTE_1( n ); \
209 ( data )[( offset ) + 1] = MBEDTLS_BYTE_0( n ); \
223 #define MBEDTLS_GET_UINT64_BE( data, offset ) \ argument
225 ( (uint64_t) ( data )[( offset ) ] << 56 ) \
226 | ( (uint64_t) ( data )[( offset ) + 1] << 48 ) \
227 | ( (uint64_t) ( data )[( offset ) + 2] << 40 ) \
228 | ( (uint64_t) ( data )[( offset ) + 3] << 32 ) \
229 | ( (uint64_t) ( data )[( offset ) + 4] << 24 ) \
230 | ( (uint64_t) ( data )[( offset ) + 5] << 16 ) \
231 | ( (uint64_t) ( data )[( offset ) + 6] << 8 ) \
232 | ( (uint64_t) ( data )[( offset ) + 7] ) \
246 #define MBEDTLS_PUT_UINT64_BE( n, data, offset ) \ argument
248 ( data )[( offset ) ] = MBEDTLS_BYTE_7( n ); \
249 ( data )[( offset ) + 1] = MBEDTLS_BYTE_6( n ); \
250 ( data )[( offset ) + 2] = MBEDTLS_BYTE_5( n ); \
251 ( data )[( offset ) + 3] = MBEDTLS_BYTE_4( n ); \
252 ( data )[( offset ) + 4] = MBEDTLS_BYTE_3( n ); \
253 ( data )[( offset ) + 5] = MBEDTLS_BYTE_2( n ); \
254 ( data )[( offset ) + 6] = MBEDTLS_BYTE_1( n ); \
255 ( data )[( offset ) + 7] = MBEDTLS_BYTE_0( n ); \
269 #define MBEDTLS_GET_UINT64_LE( data, offset ) \ argument
271 ( (uint64_t) ( data )[( offset ) + 7] << 56 ) \
272 | ( (uint64_t) ( data )[( offset ) + 6] << 48 ) \
273 | ( (uint64_t) ( data )[( offset ) + 5] << 40 ) \
274 | ( (uint64_t) ( data )[( offset ) + 4] << 32 ) \
275 | ( (uint64_t) ( data )[( offset ) + 3] << 24 ) \
276 | ( (uint64_t) ( data )[( offset ) + 2] << 16 ) \
277 | ( (uint64_t) ( data )[( offset ) + 1] << 8 ) \
278 | ( (uint64_t) ( data )[( offset ) ] ) \
292 #define MBEDTLS_PUT_UINT64_LE( n, data, offset ) \ argument
294 ( data )[( offset ) ] = MBEDTLS_BYTE_0( n ); \
295 ( data )[( offset ) + 1] = MBEDTLS_BYTE_1( n ); \
296 ( data )[( offset ) + 2] = MBEDTLS_BYTE_2( n ); \
297 ( data )[( offset ) + 3] = MBEDTLS_BYTE_3( n ); \
298 ( data )[( offset ) + 4] = MBEDTLS_BYTE_4( n ); \
299 ( data )[( offset ) + 5] = MBEDTLS_BYTE_5( n ); \
300 ( data )[( offset ) + 6] = MBEDTLS_BYTE_6( n ); \
301 ( data )[( offset ) + 7] = MBEDTLS_BYTE_7( n ); \