| /optee_os/core/lib/libtomcrypt/src/stream/salsa20/ |
| H A D | xsalsa20_test.c | 40 unsigned char ciphertext[17]; in xsalsa20_test() 46 if ((err = salsa20_crypt(&st, msg, msglen, ciphertext)) != CRYPT_OK) return err; in xsalsa20_test() 50 if ((err = salsa20_crypt(&st, ciphertext, msglen, msg2)) != CRYPT_OK) return err; in xsalsa20_test() 57 …alsa20_memory(key, sizeof(key), 20, nonce, sizeof(nonce), msg, msglen, ciphertext)) != CRYPT_OK) … in xsalsa20_test() 58 …if ((err = xsalsa20_memory(key, sizeof(key), 20, nonce, sizeof(nonce), ciphertext, msglen, msg2)) … in xsalsa20_test()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_aead.c | 124 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_psa_aead_encrypt() argument 143 tag = ciphertext + plaintext_length; in mbedtls_psa_aead_encrypt() 153 plaintext, ciphertext, in mbedtls_psa_aead_encrypt() 165 plaintext, ciphertext, in mbedtls_psa_aead_encrypt() 182 ciphertext, in mbedtls_psa_aead_encrypt() 212 const uint8_t *ciphertext, in psa_aead_unpadded_locate_tag() argument 225 *p_tag = ciphertext + payload_length; in psa_aead_unpadded_locate_tag() 235 const uint8_t *ciphertext, size_t ciphertext_length, in mbedtls_psa_aead_decrypt() argument 250 ciphertext, ciphertext_length, in mbedtls_psa_aead_decrypt() 264 ciphertext, plaintext, in mbedtls_psa_aead_decrypt() [all …]
|
| H A D | psa_crypto_aead.h | 74 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 136 const uint8_t *ciphertext, size_t ciphertext_length, 465 uint8_t *ciphertext,
|
| H A D | ccm.c | 690 unsigned char ciphertext[CCM_SELFTEST_CT_MAX_LEN]; in mbedtls_ccm_self_test() local 711 memset(ciphertext, 0, CCM_SELFTEST_CT_MAX_LEN); in mbedtls_ccm_self_test() 717 plaintext, ciphertext, in mbedtls_ccm_self_test() 718 ciphertext + msg_len_test_data[i], in mbedtls_ccm_self_test() 722 memcmp(ciphertext, res_test_data[i], in mbedtls_ccm_self_test() 735 ciphertext, plaintext, in mbedtls_ccm_self_test() 736 ciphertext + msg_len_test_data[i], in mbedtls_ccm_self_test()
|
| H A D | psa_crypto_driver_wrappers.h | 1719 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in psa_driver_wrapper_aead_encrypt() argument 1739 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt() 1753 ciphertext, ciphertext_size, ciphertext_length ) ); in psa_driver_wrapper_aead_encrypt() 1770 const uint8_t *ciphertext, size_t ciphertext_length, in psa_driver_wrapper_aead_decrypt() argument 1790 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt() 1804 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt() 2060 uint8_t *ciphertext, in psa_driver_wrapper_aead_finish() argument 2072 ciphertext, in psa_driver_wrapper_aead_finish() 2084 ciphertext, ciphertext_size, in psa_driver_wrapper_aead_finish() 2093 (void)ciphertext; in psa_driver_wrapper_aead_finish()
|
| H A D | psa_crypto.c | 4940 LOCAL_OUTPUT_DECLARE(ciphertext_external, ciphertext); in psa_aead_encrypt() 4958 LOCAL_OUTPUT_ALLOC(ciphertext_external, ciphertext_size, ciphertext); in psa_aead_encrypt() 4971 ciphertext, ciphertext_size, ciphertext_length); in psa_aead_encrypt() 4974 memset(ciphertext, 0, ciphertext_size); in psa_aead_encrypt() 4981 LOCAL_OUTPUT_FREE(ciphertext_external, ciphertext); in psa_aead_encrypt() 5005 LOCAL_INPUT_DECLARE(ciphertext_external, ciphertext); in psa_aead_decrypt() 5024 LOCAL_INPUT_ALLOC(ciphertext_external, ciphertext_length, ciphertext); in psa_aead_decrypt() 5037 ciphertext, ciphertext_length, in psa_aead_decrypt() 5047 LOCAL_INPUT_FREE(ciphertext_external, ciphertext); in psa_aead_decrypt() 5529 LOCAL_OUTPUT_DECLARE(ciphertext_external, ciphertext); in psa_aead_finish() [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | ecc.c | 377 cdata.ciphertext.data = dst + 1; in ecc_sm2_encrypt() 378 cdata.ciphertext.length = ciphertext_len; in ecc_sm2_encrypt() 383 *dst_len = cdata.ciphertext.length + 1; in ecc_sm2_encrypt() 418 uint8_t *ciphertext = NULL; in ecc_sm2_decrypt() local 441 ciphertext = (uint8_t *)src + 1; in ecc_sm2_decrypt() 458 cdata.ciphertext.data = ciphertext; in ecc_sm2_decrypt() 459 cdata.ciphertext.length = ciphertext_len; in ecc_sm2_decrypt()
|
| /optee_os/core/lib/libtomcrypt/src/encauth/eax/ |
| H A D | eax_test.c | 31 ciphertext[MAXBLOCKSIZE], in eax_test() 227 … compare_testvector(outct, tests[x].msglen, tests[x].ciphertext, tests[x].msglen, "EAX CT", x)) { in eax_test()
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/ |
| H A D | anubis.c | 1023 static void anubis_crypt(const unsigned char *plaintext, unsigned char *ciphertext, in anubis_crypt() argument 1109 ciphertext[pos ] = (unsigned char)(w >> 24); in anubis_crypt() 1110 ciphertext[pos + 1] = (unsigned char)(w >> 16); in anubis_crypt() 1111 ciphertext[pos + 2] = (unsigned char)(w >> 8); in anubis_crypt() 1112 ciphertext[pos + 3] = (unsigned char)(w ); in anubis_crypt()
|
| H A D | khazad.c | 665 static void khazad_crypt(const unsigned char *plaintext, unsigned char *ciphertext, in khazad_crypt() argument 717 ciphertext[0] = (unsigned char)(state >> 56); in khazad_crypt() 718 ciphertext[1] = (unsigned char)(state >> 48); in khazad_crypt() 719 ciphertext[2] = (unsigned char)(state >> 40); in khazad_crypt() 720 ciphertext[3] = (unsigned char)(state >> 32); in khazad_crypt() 721 ciphertext[4] = (unsigned char)(state >> 24); in khazad_crypt() 722 ciphertext[5] = (unsigned char)(state >> 16); in khazad_crypt() 723 ciphertext[6] = (unsigned char)(state >> 8); in khazad_crypt() 724 ciphertext[7] = (unsigned char)(state ); in khazad_crypt()
|
| /optee_os/scripts/ |
| H A D | sign_encrypt.py | 400 self.ciphertext = out[:-TAG_SIZE] 523 self.ciphertext = self.inf[offs:] 524 if len(self.ciphertext) != img_size: 527 .format(len(self.ciphertext), img_size)) 528 self.img = self.ciphertext 628 ciphertext = self.inf[offs:] 631 .format(len(ciphertext), len(ciphertext))) 632 if len(ciphertext) != img_size: 635 .format(len(ciphertext), img_size)) 728 self.img = cipher.decrypt(self.nonce, self.ciphertext + self.tag, None) [all …]
|
| H A D | sign_helper_kms.py | 86 def decrypt(self, ciphertext: bytes, padding: AsymmetricPadding) -> bytes:
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto.h | 2129 uint8_t *ciphertext, 2200 const uint8_t *ciphertext, 2721 uint8_t *ciphertext,
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_acipher.h | 146 struct drvcrypt_buf ciphertext; /* Encrypted message */ member
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 1727 man-in-the-middle to inject fake ciphertext into a DTLS connection. 1826 * Ignore plaintext/ciphertext lengths for CCM*-no-tag operations. 2444 these new functions always append the tag to the ciphertext, and include 2445 the tag in the ciphertext length.
|