| /trusted-services/components/common/tlv/ |
| A D | tlv.c | 36 bool tlv_encode(struct tlv_iterator *iter, const struct tlv_record *input) in tlv_encode() argument 39 size_t required_space = tlv_required_space(input->length); in tlv_encode() 42 if (required_space <= available_space && input->tag >= iter->prev_tag) { in tlv_encode() 44 iter->pos[TLV_TAG_OFFSET + 0] = (uint8_t)(input->tag >> 8); in tlv_encode() 45 iter->pos[TLV_TAG_OFFSET + 1] = (uint8_t)(input->tag); in tlv_encode() 46 iter->pos[TLV_LENGTH_OFFSET + 0] = (uint8_t)(input->length >> 8); in tlv_encode() 47 iter->pos[TLV_LENGTH_OFFSET + 1] = (uint8_t)(input->length); in tlv_encode() 49 memcpy(&iter->pos[TLV_VALUE_OFFSET], input->value, input->length); in tlv_encode() 52 iter->prev_tag = input->tag; in tlv_encode()
|
| /trusted-services/components/service/crypto/client/psa/ |
| A D | psa_hash.c | 25 const uint8_t *input, in psa_hash_update() argument 30 input, input_length); in psa_hash_update() 95 const uint8_t *input, in multi_hash_update() argument 122 psa_status = psa_hash_update(operation, &input[bytes_processed], update_len); in multi_hash_update() 138 const uint8_t *input, in psa_hash_compare() argument 144 psa_status_t psa_status = multi_hash_update(&operation, alg, input, input_length); in psa_hash_compare() 160 const uint8_t *input, in psa_hash_compute() argument 167 psa_status_t psa_status = multi_hash_update(&operation, alg, input, input_length); in psa_hash_compute()
|
| A D | psa_mac.c | 43 const uint8_t *input, in psa_mac_update() argument 48 input, input_length); in psa_mac_update() 77 const uint8_t *input, in multi_mac_update() argument 100 psa_status = psa_mac_update(operation, &input[bytes_processed], update_len); in multi_mac_update() 116 const uint8_t *input, in psa_mac_verify() argument 126 psa_status = multi_mac_update(&operation, input, input_length); in psa_mac_verify() 144 const uint8_t *input, in psa_mac_compute() argument 155 psa_status = multi_mac_update(&operation, input, input_length); in psa_mac_compute()
|
| A D | psa_verify_message.c | 14 const uint8_t *input, in psa_verify_message() argument 24 input, input_length, in psa_verify_message()
|
| A D | psa_sign_message.c | 14 const uint8_t *input, in psa_sign_message() argument 25 input, input_length, in psa_sign_message()
|
| A D | psa_cipher.c | 61 const uint8_t *input, in psa_cipher_update() argument 69 input, input_length, in psa_cipher_update() 90 const uint8_t *input, in multi_cipher_update() argument 129 &input[bytes_input], update_len, in multi_cipher_update() 168 const uint8_t *input, in psa_cipher_encrypt() argument 189 input, input_length, in psa_cipher_encrypt() 211 const uint8_t *input, in psa_cipher_decrypt() argument 231 psa_status = psa_cipher_set_iv(&operation, input, iv_len); in psa_cipher_decrypt() 236 &input[iv_len], input_length - iv_len, in psa_cipher_decrypt()
|
| A D | psa_asymmetric_decrypt.c | 13 const uint8_t *input, size_t input_length, in psa_asymmetric_decrypt() argument 22 input, input_length, in psa_asymmetric_decrypt()
|
| A D | psa_asymmetric_encrypt.c | 13 const uint8_t *input, size_t input_length, in psa_asymmetric_encrypt() argument 22 input, input_length, in psa_asymmetric_encrypt()
|
| A D | psa_aead.c | 62 const uint8_t *input, in psa_aead_update_ad() argument 67 input, input_length); in psa_aead_update_ad() 71 const uint8_t *input, in psa_aead_update() argument 79 input, input_length, in psa_aead_update() 129 const uint8_t *input, in multi_aead_update_ad() argument 155 &input[bytes_input], update_len); in multi_aead_update_ad() 166 const uint8_t *input, in multi_aead_update() argument 199 &input[bytes_input], update_len, in multi_aead_update()
|
| /trusted-services/components/service/crypto/client/caller/stub/ |
| A D | crypto_caller_asymmetric_decrypt.h | 20 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_decrypt() argument 27 (void)input; in crypto_caller_asymmetric_decrypt()
|
| A D | crypto_caller_asymmetric_encrypt.h | 20 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_encrypt() argument 27 (void)input; in crypto_caller_asymmetric_encrypt()
|
| A D | crypto_caller_hash.h | 30 const uint8_t *input, in crypto_caller_hash_update() argument 35 (void)input; in crypto_caller_hash_update()
|
| A D | crypto_caller_mac.h | 46 const uint8_t *input, in crypto_caller_mac_update() argument 51 (void)input; in crypto_caller_mac_update()
|
| A D | crypto_caller_aead.h | 144 const uint8_t *input, in crypto_caller_aead_update_ad() argument 149 (void)input; in crypto_caller_aead_update_ad() 157 const uint8_t *input, in crypto_caller_aead_update() argument 165 (void)input; in crypto_caller_aead_update()
|
| A D | crypto_caller_cipher.h | 73 const uint8_t *input, in crypto_caller_cipher_update() argument 81 (void)input; in crypto_caller_cipher_update()
|
| A D | crypto_caller_verify_hash.h | 37 const uint8_t *input, size_t input_length, in crypto_caller_verify_message() argument
|
| /trusted-services/components/service/crypto/include/psa/ |
| A D | crypto.h | 966 const uint8_t *input, size_t input_length); 1212 const uint8_t *input, size_t input_length, 1249 const uint8_t *input, size_t input_length, 1450 const uint8_t *input, size_t input_length); 1616 const uint8_t *input, size_t input_length, 1660 const uint8_t *input, size_t input_length, 1953 const uint8_t *input, size_t input_length, 2584 const uint8_t *input, size_t input_length, 2831 const uint8_t *input, size_t input_length, 3028 const uint8_t *input, size_t input_length, [all …]
|
| /trusted-services/components/service/crypto/test/service/extension/hash/ |
| A D | hash_service_scenarios.cpp | 41 std::vector<uint8_t> input; in calculateHash() local 46 hash_test_vectors::plaintext_1_len_610(input); in calculateHash() 54 status = m_crypto_client->hash_update(op_handle, &input[0], input.size()); in calculateHash()
|
| /trusted-services/components/service/crypto/client/caller/psa_ipc/ |
| A D | crypto_caller_asymmetric_decrypt.h | 31 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_decrypt() argument 52 { .base = psa_ptr_const_to_u32(input), .len = input_length }, in crypto_caller_asymmetric_decrypt()
|
| A D | crypto_caller_asymmetric_encrypt.h | 31 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_encrypt() argument 52 { .base = psa_ptr_const_to_u32(input), .len = input_length }, in crypto_caller_asymmetric_encrypt()
|
| /trusted-services/components/service/crypto/client/cpp/protocol/packed-c/ |
| A D | packedc_crypto_client.cpp | 132 const uint8_t *input, size_t input_length, in asymmetric_encrypt() argument 137 input, input_length, in asymmetric_encrypt() 144 const uint8_t *input, size_t input_length, in asymmetric_decrypt() argument 149 input, input_length, in asymmetric_decrypt() 177 const uint8_t *input, size_t input_length) in hash_update() argument 180 op_handle, input, input_length); in hash_update() 256 const uint8_t *input, size_t input_length, in cipher_update() argument 260 op_handle, input, input_length, in cipher_update() 305 const uint8_t *input, size_t input_length) in mac_update() argument 308 op_handle, input, input_length); in mac_update()
|
| A D | packedc_crypto_client.h | 88 const uint8_t *input, size_t input_length, 95 const uint8_t *input, size_t input_length, 112 const uint8_t *input, size_t input_length); 152 const uint8_t *input, size_t input_length, 177 const uint8_t *input, size_t input_length);
|
| /trusted-services/components/service/crypto/provider/extension/aead/serializer/ |
| A D | aead_provider_serializer.h | 49 const uint8_t **input, size_t *input_len); 54 const uint8_t **input, size_t *input_len);
|
| /trusted-services/components/service/crypto/client/caller/packed-c/ |
| A D | crypto_caller_asymmetric_decrypt.h | 26 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_decrypt() argument 44 ciphertext_record.value = input; in crypto_caller_asymmetric_decrypt()
|
| A D | crypto_caller_asymmetric_encrypt.h | 26 const uint8_t *input, size_t input_length, in crypto_caller_asymmetric_encrypt() argument 44 plaintext_record.value = input; in crypto_caller_asymmetric_encrypt()
|