Lines Matching refs:A
128 static void calc_a_xor_t( unsigned char A[KW_SEMIBLOCK_LENGTH], uint64_t t ) in calc_a_xor_t()
133 A[i] ^= ( t >> ( ( sizeof( t ) - 1 - i ) * 8 ) ) & 0xff; in calc_a_xor_t()
229 unsigned char *A = output; in mbedtls_nist_kw_wrap() local
243 memcpy( inbuff, A, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_wrap()
251 memcpy( A, outbuff, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_wrap()
252 calc_a_xor_t( A, t ); in mbedtls_nist_kw_wrap()
285 unsigned char A[KW_SEMIBLOCK_LENGTH], in unwrap()
302 memcpy( A, input, KW_SEMIBLOCK_LENGTH ); in unwrap()
309 calc_a_xor_t( A, t ); in unwrap()
311 memcpy( inbuff, A, KW_SEMIBLOCK_LENGTH ); in unwrap()
319 memcpy( A, outbuff, KW_SEMIBLOCK_LENGTH ); in unwrap()
352 unsigned char A[KW_SEMIBLOCK_LENGTH]; in mbedtls_nist_kw_unwrap() local
377 A, output, out_len ); in mbedtls_nist_kw_unwrap()
382 diff = mbedtls_ct_memcmp( NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_unwrap()
416 memcpy( A, outbuff, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_unwrap()
425 A, output, out_len ); in mbedtls_nist_kw_unwrap()
431 diff = mbedtls_ct_memcmp( NIST_KW_ICV2, A, KW_SEMIBLOCK_LENGTH / 2 ); in mbedtls_nist_kw_unwrap()
438 Plen = MBEDTLS_GET_UINT32_BE( A, KW_SEMIBLOCK_LENGTH / 2 ); in mbedtls_nist_kw_unwrap()
488 mbedtls_platform_zeroize( A, sizeof( A ) ); in mbedtls_nist_kw_unwrap()