Lines Matching refs:offset

57 #define BYTES_TO_U32_LE( data, offset )                           \  argument
58 ( (uint32_t) (data)[offset] \
59 | (uint32_t) ( (uint32_t) (data)[( offset ) + 1] << 8 ) \
60 | (uint32_t) ( (uint32_t) (data)[( offset ) + 2] << 16 ) \
61 | (uint32_t) ( (uint32_t) (data)[( offset ) + 3] << 24 ) \
172 size_t offset = i * 4U; in chacha20_block() local
174 keystream[offset ] = (unsigned char)( working_state[i] ); in chacha20_block()
175 keystream[offset + 1U] = (unsigned char)( working_state[i] >> 8 ); in chacha20_block()
176 keystream[offset + 2U] = (unsigned char)( working_state[i] >> 16 ); in chacha20_block()
177 keystream[offset + 3U] = (unsigned char)( working_state[i] >> 24 ); in chacha20_block()
255 size_t offset = 0U; in mbedtls_chacha20_update() local
265 output[offset] = input[offset] in mbedtls_chacha20_update()
269 offset++; in mbedtls_chacha20_update()
282 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
283 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
284 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
285 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
286 output[offset + i+4] = input[offset + i+4] ^ ctx->keystream8[i+4]; in mbedtls_chacha20_update()
287 output[offset + i+5] = input[offset + i+5] ^ ctx->keystream8[i+5]; in mbedtls_chacha20_update()
288 output[offset + i+6] = input[offset + i+6] ^ ctx->keystream8[i+6]; in mbedtls_chacha20_update()
289 output[offset + i+7] = input[offset + i+7] ^ ctx->keystream8[i+7]; in mbedtls_chacha20_update()
292 offset += CHACHA20_BLOCK_SIZE_BYTES; in mbedtls_chacha20_update()
305 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()