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.c2264 * the source key would need to be exported as plaintext and re-imported in psa_copy_key()
4959 LOCAL_INPUT_DECLARE(plaintext_external, plaintext); in psa_aead_encrypt()
4977 LOCAL_INPUT_ALLOC(plaintext_external, plaintext_length, plaintext); in psa_aead_encrypt()
4990 plaintext, plaintext_length, in psa_aead_decrypt()
5000 LOCAL_INPUT_FREE(plaintext_external, plaintext); in psa_aead_decrypt()
5026 LOCAL_OUTPUT_DECLARE(plaintext_external, plaintext); in psa_aead_decrypt()
5045 LOCAL_OUTPUT_ALLOC(plaintext_external, plaintext_size, plaintext); in psa_aead_decrypt()
5058 plaintext, plaintext_size, plaintext_length); in psa_validate_tag_length()
5061 memset(plaintext, 0, plaintext_size); in psa_validate_tag_length()
5068 LOCAL_OUTPUT_FREE(plaintext_external, plaintext); in psa_validate_tag_length()
[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.c380 cdata.plaintext.data = (uint8_t *)src; in ecc_sm2_encrypt()
381 cdata.plaintext.length = src_len; in ecc_sm2_encrypt()
470 cdata.plaintext.data = dst; in ecc_sm2_decrypt()
471 cdata.plaintext.length = plaintext_len; in ecc_sm2_decrypt()
477 *dst_len = cdata.plaintext.length; in ecc_sm2_decrypt()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto.h1644 * \param[out] output Buffer where the plaintext is to be written.
2061 * \param[in] plaintext Data that will be authenticated and
2063 * \param plaintext_length Size of \p plaintext in bytes.
2115 const uint8_t *plaintext,
2141 * \param[out] plaintext Output buffer for the decrypted data.
2142 * \param plaintext_size Size of the \p plaintext buffer in bytes.
2151 * plaintext size of any supported AEAD
2154 * in the \p plaintext buffer.
2190 uint8_t *plaintext,
2471 * \param plaintext_length Size of the plaintext t
[all...]
/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 DChangeLog105 ciphertexts to recover the plaintext through a timing oracle attack.
698 could be sufficient for an attacker to recover the plaintext. A local
1869 * Ignore plaintext/ciphertext lengths for CCM*-no-tag operations.
2691 * Zeroising of plaintext buffers in mbedtls_ssl_read() to erase unused
2789 plaintext after repeated timing measurements under some conditions.
3446 a plaintext for RSA PKCS#1 v1.5 decryption but only observe the timing
3669 partially recover the plaintext of messages under some conditions by
3683 plaintext of messages under some conditions by using a cache attack
3693 to partially recover the plaintext of messages under some conditions (see
3875 * Return the plaintext dat
[all...]