Lines Matching refs:A
117 static void calc_a_xor_t(unsigned char A[KW_SEMIBLOCK_LENGTH], uint64_t t) in calc_a_xor_t()
121 A[i] ^= (t >> ((sizeof(t) - 1 - i) * 8)) & 0xff; in calc_a_xor_t()
207 unsigned char *A = output; in mbedtls_nist_kw_wrap() local
219 memcpy(inbuff, A, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_wrap()
228 memcpy(A, outbuff, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_wrap()
229 calc_a_xor_t(A, t); in mbedtls_nist_kw_wrap()
262 unsigned char A[KW_SEMIBLOCK_LENGTH], in unwrap()
278 memcpy(A, input, KW_SEMIBLOCK_LENGTH); in unwrap()
284 calc_a_xor_t(A, t); in unwrap()
286 memcpy(inbuff, A, KW_SEMIBLOCK_LENGTH); in unwrap()
295 memcpy(A, outbuff, KW_SEMIBLOCK_LENGTH); in unwrap()
330 unsigned char A[KW_SEMIBLOCK_LENGTH]; in mbedtls_nist_kw_unwrap() local
352 A, output, out_len); in mbedtls_nist_kw_unwrap()
358 diff = mbedtls_ct_memcmp(NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_unwrap()
388 memcpy(A, outbuff, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_unwrap()
395 A, output, out_len); in mbedtls_nist_kw_unwrap()
402 diff = mbedtls_ct_memcmp(NIST_KW_ICV2, A, KW_SEMIBLOCK_LENGTH / 2); in mbedtls_nist_kw_unwrap()
408 Plen = MBEDTLS_GET_UINT32_BE(A, KW_SEMIBLOCK_LENGTH / 2); in mbedtls_nist_kw_unwrap()
447 mbedtls_platform_zeroize(A, sizeof(A)); in mbedtls_nist_kw_unwrap()