1 /* 2 * Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <delegated_attestation.h> 8 #include <psa/error.h> 9 10 /* 11 * Get the platform attestation token through the PSA delegated attestation 12 * layer. 13 * 14 * FVP cannot support RSS hardware at the moment, but it can still mock the 15 * RSS implementation of the PSA interface (see PLAT_RSS_NOT_SUPPORTED). 16 */ 17 int plat_rmmd_get_cca_attest_token(uintptr_t buf, size_t *len, 18 uintptr_t hash, size_t hash_size) 19 { 20 psa_status_t ret; 21 22 ret = rss_delegated_attest_get_token((const uint8_t *)hash, hash_size, 23 (uint8_t *)buf, *len, len); 24 25 return ret; 26 } 27