Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 – 12 of 12) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/encauth/eax/
H A Deax_test.c30 plaintext[MAXBLOCKSIZE], in eax_test()
223 tests[x].plaintext, tests[x].msglen, outct, outtag, &len)) != CRYPT_OK) { in eax_test()
237 …if ((res != 1) || compare_testvector(outct, tests[x].msglen, tests[x].plaintext, tests[x].msglen, … in eax_test()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_aead.c123 const uint8_t *plaintext, size_t plaintext_length, in mbedtls_psa_aead_encrypt() argument
153 plaintext, ciphertext, in mbedtls_psa_aead_encrypt()
165 plaintext, ciphertext, in mbedtls_psa_aead_encrypt()
181 plaintext, in mbedtls_psa_aead_encrypt()
192 (void) plaintext; in mbedtls_psa_aead_encrypt()
236 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length) in mbedtls_psa_aead_decrypt() argument
264 ciphertext, plaintext, in mbedtls_psa_aead_decrypt()
277 ciphertext, plaintext)); in mbedtls_psa_aead_decrypt()
294 plaintext)); in mbedtls_psa_aead_decrypt()
302 (void) plaintext; in mbedtls_psa_aead_decrypt()
H A Dpsa_crypto_aead.h73 const uint8_t *plaintext, size_t plaintext_length,
137 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length);
H A Dccm.c689 unsigned char plaintext[CCM_SELFTEST_PT_MAX_LEN]; in mbedtls_ccm_self_test() local
710 memset(plaintext, 0, CCM_SELFTEST_PT_MAX_LEN); in mbedtls_ccm_self_test()
712 memcpy(plaintext, msg_test_data, msg_len_test_data[i]); in mbedtls_ccm_self_test()
717 plaintext, ciphertext, in mbedtls_ccm_self_test()
730 memset(plaintext, 0, CCM_SELFTEST_PT_MAX_LEN); in mbedtls_ccm_self_test()
735 ciphertext, plaintext, in mbedtls_ccm_self_test()
740 memcmp(plaintext, msg_test_data, msg_len_test_data[i]) != 0) { in mbedtls_ccm_self_test()
H A Dpsa_crypto_driver_wrappers.h1718 const uint8_t *plaintext, size_t plaintext_length, in psa_driver_wrapper_aead_encrypt() argument
1738 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt()
1752 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt()
1771 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in psa_driver_wrapper_aead_decrypt() argument
1791 plaintext, plaintext_size, plaintext_length ); in psa_driver_wrapper_aead_decrypt()
1805 plaintext, plaintext_size, plaintext_length ) ); in psa_driver_wrapper_aead_decrypt()
2105 uint8_t *plaintext, in psa_driver_wrapper_aead_verify() argument
2121 plaintext, in psa_driver_wrapper_aead_verify()
2148 plaintext, plaintext_size, in psa_driver_wrapper_aead_verify()
2157 (void)plaintext; in psa_driver_wrapper_aead_verify()
H A Dpsa_crypto.c4939 LOCAL_INPUT_DECLARE(plaintext_external, plaintext); in psa_aead_encrypt()
4957 LOCAL_INPUT_ALLOC(plaintext_external, plaintext_length, plaintext); in psa_aead_encrypt()
4970 plaintext, plaintext_length, in psa_aead_encrypt()
4980 LOCAL_INPUT_FREE(plaintext_external, plaintext); in psa_aead_encrypt()
5006 LOCAL_OUTPUT_DECLARE(plaintext_external, plaintext); in psa_aead_decrypt()
5025 LOCAL_OUTPUT_ALLOC(plaintext_external, plaintext_size, plaintext); in psa_aead_decrypt()
5038 plaintext, plaintext_size, plaintext_length); in psa_aead_decrypt()
5041 memset(plaintext, 0, plaintext_size); in psa_aead_decrypt()
5048 LOCAL_OUTPUT_FREE(plaintext_external, plaintext); in psa_aead_decrypt()
5582 LOCAL_OUTPUT_DECLARE(plaintext_external, plaintext); in psa_aead_verify()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Danubis.c1023 static void anubis_crypt(const unsigned char *plaintext, unsigned char *ciphertext, in anubis_crypt() argument
1035 (((ulong32)plaintext[pos ]) << 24) ^ in anubis_crypt()
1036 (((ulong32)plaintext[pos + 1]) << 16) ^ in anubis_crypt()
1037 (((ulong32)plaintext[pos + 2]) << 8) ^ in anubis_crypt()
1038 (((ulong32)plaintext[pos + 3]) ) ^ in anubis_crypt()
H A Dkhazad.c665 static void khazad_crypt(const unsigned char *plaintext, unsigned char *ciphertext, in khazad_crypt() argument
674 ((ulong64)plaintext[0] << 56) ^ in khazad_crypt()
675 ((ulong64)plaintext[1] << 48) ^ in khazad_crypt()
676 ((ulong64)plaintext[2] << 40) ^ in khazad_crypt()
677 ((ulong64)plaintext[3] << 32) ^ in khazad_crypt()
678 ((ulong64)plaintext[4] << 24) ^ in khazad_crypt()
679 ((ulong64)plaintext[5] << 16) ^ in khazad_crypt()
680 ((ulong64)plaintext[6] << 8) ^ in khazad_crypt()
681 ((ulong64)plaintext[7] ) ^ in khazad_crypt()
/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Decc.c375 cdata.plaintext.data = (uint8_t *)src; in ecc_sm2_encrypt()
376 cdata.plaintext.length = src_len; in ecc_sm2_encrypt()
460 cdata.plaintext.data = dst; in ecc_sm2_decrypt()
461 cdata.plaintext.length = plaintext_len; in ecc_sm2_decrypt()
467 *dst_len = cdata.plaintext.length; in ecc_sm2_decrypt()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto.h2127 const uint8_t *plaintext,
2202 uint8_t *plaintext,
2804 uint8_t *plaintext,
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_acipher.h145 struct drvcrypt_buf plaintext; /* Clear text message */ member
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog62 ciphertexts to recover the plaintext through a timing oracle attack.
655 could be sufficient for an attacker to recover the plaintext. A local
1826 * Ignore plaintext/ciphertext lengths for CCM*-no-tag operations.
2648 * Zeroising of plaintext buffers in mbedtls_ssl_read() to erase unused
2746 plaintext after repeated timing measurements under some conditions.
3403 a plaintext for RSA PKCS#1 v1.5 decryption but only observe the timing
3626 partially recover the plaintext of messages under some conditions by
3640 plaintext of messages under some conditions by using a cache attack
3650 to partially recover the plaintext of messages under some conditions (see
3832 * Return the plaintext data more quickly on unpadded CBC decryption, as