Home
last modified time | relevance | path

Searched refs:mbedtls_xor (Results 1 – 25 of 33) sorted by relevance

12

/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_common.data2 mbedtls_xor:0
5 mbedtls_xor:1
8 mbedtls_xor:3
11 mbedtls_xor:4
14 mbedtls_xor:7
17 mbedtls_xor:8
20 mbedtls_xor:16
23 mbedtls_xor:64
26 mbedtls_xor:256
29 mbedtls_xor:257
[all …]
H A Dtest_suite_common.function16 void mbedtls_xor(int len)
30 mbedtls_xor(r2, a, b, n);
38 mbedtls_xor(r2, r2, b, n);
46 mbedtls_xor(r2, a, r2, n);
54 mbedtls_xor(r2, a, a, n);
62 mbedtls_xor(r2, r2, r2, n);
73 mbedtls_xor(r2 + r_off, a + a_off, b + b_off, n);
/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_common.data2 mbedtls_xor:0
5 mbedtls_xor:1
8 mbedtls_xor:3
11 mbedtls_xor:4
14 mbedtls_xor:7
17 mbedtls_xor:8
20 mbedtls_xor:16
23 mbedtls_xor:64
26 mbedtls_xor:256
29 mbedtls_xor:257
[all …]
H A Dtest_suite_common.function16 void mbedtls_xor(int len)
30 mbedtls_xor(r2, a, b, n);
38 mbedtls_xor(r2, r2, b, n);
46 mbedtls_xor(r2, a, r2, n);
54 mbedtls_xor(r2, a, a, n);
62 mbedtls_xor(r2, r2, r2, n);
73 mbedtls_xor(r2 + r_off, a + a_off, b + b_off, n);
/aosp_15_r20/external/mbedtls/library/
H A Dgcm.c283 mbedtls_xor(ctx->y, ctx->y, p, use_len); in mbedtls_gcm_starts()
291 mbedtls_xor(ctx->y, ctx->y, work_buf, 16); in mbedtls_gcm_starts()
341 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, p, use_len); in mbedtls_gcm_update_ad()
355 mbedtls_xor(ctx->buf, ctx->buf, p, 16); in mbedtls_gcm_update_ad()
364 mbedtls_xor(ctx->buf, ctx->buf, p, add_len); in mbedtls_gcm_update_ad()
399 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, input, use_len); in gcm_mask()
401 mbedtls_xor(output, ectr + offset, input, use_len); in gcm_mask()
403 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, output, use_len); in gcm_mask()
535 mbedtls_xor(ctx->buf, ctx->buf, work_buf, 16); in mbedtls_gcm_finish()
539 mbedtls_xor(tag, tag, ctx->buf, tag_len); in mbedtls_gcm_finish()
H A Dccm.c118 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt()
294 mbedtls_xor(ctx->y + offset, ctx->y + offset, add, use_len); in mbedtls_ccm_update_ad()
360 mbedtls_xor(ctx->y + offset, ctx->y + offset, input, use_len); in mbedtls_ccm_update()
389 mbedtls_xor(ctx->y + offset, ctx->y + offset, local_output, use_len); in mbedtls_ccm_update()
H A Ddes.c642 mbedtls_xor(output, input, iv, 8); in mbedtls_des_crypt_cbc()
662 mbedtls_xor(output, output, iv, 8); in mbedtls_des_crypt_cbc()
740 mbedtls_xor(output, input, iv, 8); in mbedtls_des3_crypt_cbc()
760 mbedtls_xor(output, output, iv, 8); in mbedtls_des3_crypt_cbc()
H A Dcmac.c298 mbedtls_xor(M_last, M_last, K2, block_size); in mbedtls_cipher_cmac_finish()
301 mbedtls_xor(M_last, last_block, K1, block_size); in mbedtls_cipher_cmac_finish()
305 mbedtls_xor(state, M_last, state, block_size); in mbedtls_cipher_cmac_finish()
H A Dchacha20.c224 mbedtls_xor(output + offset, input + offset, ctx->keystream8, 64U); in mbedtls_chacha20_update()
236 mbedtls_xor(output + offset, input + offset, ctx->keystream8, size); in mbedtls_chacha20_update()
H A Dcamellia.c538 mbedtls_xor(output, output, iv, 16); in mbedtls_camellia_crypt_cbc()
548 mbedtls_xor(output, input, iv, 16); in mbedtls_camellia_crypt_cbc()
H A Dmd.c1000 mbedtls_xor(ipad, ipad, key, keylen); in mbedtls_md_hmac_starts()
1001 mbedtls_xor(opad, opad, key, keylen); in mbedtls_md_hmac_starts()
H A Daria.c549 mbedtls_xor(output, output, iv, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
559 mbedtls_xor(output, input, iv, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
H A Dplatform_util.c224 extern inline void mbedtls_xor(unsigned char *r,
H A Dcommon.h168 inline void mbedtls_xor(unsigned char *r, const unsigned char *a, const unsigned char *b, size_t n) in mbedtls_xor() function
H A Daes.c1271 mbedtls_xor(tmp, input, tweak, 16); in mbedtls_aes_crypt_xts()
1278 mbedtls_xor(output, tmp, tweak, 16); in mbedtls_aes_crypt_xts()
1304 mbedtls_xor(tmp, input, t, leftover); in mbedtls_aes_crypt_xts()
1308 mbedtls_xor(tmp + i, prev_output + i, t + i, 16 - i); in mbedtls_aes_crypt_xts()
1317 mbedtls_xor(prev_output, tmp, t, 16); in mbedtls_aes_crypt_xts()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/
H A Dgcm.c420 mbedtls_xor(ctx->y, ctx->y, p, use_len); in mbedtls_gcm_starts()
432 mbedtls_xor(ctx->y, ctx->y, work_buf, 16); in mbedtls_gcm_starts()
495 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, p, use_len); in mbedtls_gcm_update_ad()
509 mbedtls_xor(ctx->buf, ctx->buf, p, 16); in mbedtls_gcm_update_ad()
518 mbedtls_xor(ctx->buf, ctx->buf, p, add_len); in mbedtls_gcm_update_ad()
554 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, input, use_len); in gcm_mask()
556 mbedtls_xor(output, ectr + offset, input, use_len); in gcm_mask()
558 mbedtls_xor(ctx->buf + offset, ctx->buf + offset, output, use_len); in gcm_mask()
693 mbedtls_xor(ctx->buf, ctx->buf, work_buf, 16); in mbedtls_gcm_finish()
697 mbedtls_xor(tag, tag, ctx->buf, tag_len); in mbedtls_gcm_finish()
H A Ddes.c642 mbedtls_xor(output, input, iv, 8); in mbedtls_des_crypt_cbc()
662 mbedtls_xor(output, output, iv, 8); in mbedtls_des_crypt_cbc()
740 mbedtls_xor(output, input, iv, 8); in mbedtls_des3_crypt_cbc()
760 mbedtls_xor(output, output, iv, 8); in mbedtls_des3_crypt_cbc()
H A Dccm.c143 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt()
330 mbedtls_xor(ctx->y + offset, ctx->y + offset, add, use_len); in mbedtls_ccm_update_ad()
403 mbedtls_xor(ctx->y + offset, ctx->y + offset, input, use_len); in mbedtls_ccm_update()
436 mbedtls_xor(ctx->y + offset, ctx->y + offset, local_output, use_len); in mbedtls_ccm_update()
H A Dcmac.c298 mbedtls_xor(M_last, M_last, K2, block_size); in mbedtls_cipher_cmac_finish()
301 mbedtls_xor(M_last, last_block, K1, block_size); in mbedtls_cipher_cmac_finish()
305 mbedtls_xor(state, M_last, state, block_size); in mbedtls_cipher_cmac_finish()
H A Dchacha20.c224 mbedtls_xor(output + offset, input + offset, ctx->keystream8, 64U); in mbedtls_chacha20_update()
236 mbedtls_xor(output + offset, input + offset, ctx->keystream8, size); in mbedtls_chacha20_update()
H A Daes.c1235 mbedtls_xor(tmp, input, tweak, 16); in mbedtls_aes_crypt_xts()
1242 mbedtls_xor(output, tmp, tweak, 16); in mbedtls_aes_crypt_xts()
1268 mbedtls_xor(tmp, input, t, leftover); in mbedtls_aes_crypt_xts()
1272 mbedtls_xor(tmp + i, prev_output + i, t + i, 16 - i); in mbedtls_aes_crypt_xts()
1281 mbedtls_xor(prev_output, tmp, t, 16); in mbedtls_aes_crypt_xts()
1468 mbedtls_xor(&output[i], &input[i], &stream_block[offset], n); in mbedtls_aes_crypt_ctr()
H A Dcamellia.c540 mbedtls_xor(output, output, iv, 16); in mbedtls_camellia_crypt_cbc()
550 mbedtls_xor(output, input, iv, 16); in mbedtls_camellia_crypt_cbc()
H A Dctr_drbg.c236 mbedtls_xor(chain, chain, p, MBEDTLS_CTR_DRBG_BLOCKSIZE); in block_cipher_df()
372 mbedtls_xor(tmp, tmp, data, MBEDTLS_CTR_DRBG_SEEDLEN); in ctr_drbg_update_internal()
H A Daria.c534 mbedtls_xor(output, output, iv, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
544 mbedtls_xor(output, input, iv, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
H A Dmd.c1000 mbedtls_xor(ipad, ipad, key, keylen); in mbedtls_md_hmac_starts()
1001 mbedtls_xor(opad, opad, key, keylen); in mbedtls_md_hmac_starts()

12