Lines Matching refs:b
117 y[i] ^= b[i]; \
128 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctr, 16, b, &olen ) ) != 0 ) \
132 dst[i] = src[i] ^ b[i];
147 unsigned char b[16]; in ccm_auth_crypt() local
182 b[0] = 0; in ccm_auth_crypt()
183 b[0] |= ( add_len > 0 ) << 6; in ccm_auth_crypt()
184 b[0] |= ( ( tag_len - 2 ) / 2 ) << 3; in ccm_auth_crypt()
185 b[0] |= q - 1; in ccm_auth_crypt()
187 memcpy( b + 1, iv, iv_len ); in ccm_auth_crypt()
190 b[15-i] = (unsigned char)( len_left & 0xFF ); in ccm_auth_crypt()
210 memset( b, 0, 16 ); in ccm_auth_crypt()
211 b[0] = (unsigned char)( ( add_len >> 8 ) & 0xFF ); in ccm_auth_crypt()
212 b[1] = (unsigned char)( ( add_len ) & 0xFF ); in ccm_auth_crypt()
215 memcpy( b + 2, src, use_len ); in ccm_auth_crypt()
225 memset( b, 0, 16 ); in ccm_auth_crypt()
226 memcpy( b, src, use_len ); in ccm_auth_crypt()
265 memset( b, 0, 16 ); in ccm_auth_crypt()
266 memcpy( b, src, use_len ); in ccm_auth_crypt()
274 memset( b, 0, 16 ); in ccm_auth_crypt()
275 memcpy( b, dst, use_len ); in ccm_auth_crypt()