Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/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 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 Dccm.c143 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt()
331 mbedtls_xor(ctx->y + offset, ctx->y + offset, add, use_len); in mbedtls_ccm_update_ad()
404 mbedtls_xor(ctx->y + offset, ctx->y + offset, input, use_len); in mbedtls_ccm_update()
437 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.c306 mbedtls_xor(M_last, M_last, K2, block_size); in mbedtls_cipher_cmac_finish()
309 mbedtls_xor(M_last, last_block, K1, block_size); in mbedtls_cipher_cmac_finish()
313 mbedtls_xor(state, M_last, state, block_size); in mbedtls_cipher_cmac_finish()
H A Dcommon.h196 static inline void mbedtls_xor(unsigned char *r, in mbedtls_xor() function
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.c1003 mbedtls_xor(ipad, ipad, key, keylen); in mbedtls_md_hmac_starts()
1004 mbedtls_xor(opad, opad, key, keylen); in mbedtls_md_hmac_starts()
H A Dpkcs5.c333 mbedtls_xor(work, work, md1, md_size); in pkcs5_pbkdf2_hmac()
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 Dssl_msg.c898 mbedtls_xor(dst_iv, dst_iv, dynamic_iv, dynamic_iv_len); in ssl_build_record_nonce()
H A Dpsa_crypto.c6165 mbedtls_xor(U_accumulator, U_accumulator, U_i, prf_output_length); in psa_key_derivation_pbkdf2_generate_block()