1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2014, STMicroelectronics International N.V. 4 */ 5 6 #ifndef XTEST_UUID_HELPERS_H 7 #define XTEST_UUID_HELPERS_H 8 9 #include <tee_api_types.h> 10 11 /* 12 * Convert a UUID string @s into a TEEC_UUID @uuid 13 * Expected format for @s is: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 14 * 'x' being any hexadecimal digit (0-9a-fA-F) 15 */ 16 TEEC_Result xtest_uuid_from_str(TEEC_UUID *uuid, const char *s); 17 18 #ifdef OPENSSL_FOUND 19 /* 20 * Form UUIDv5 from given name space and name. 21 */ 22 TEEC_Result xtest_uuid_v5(TEEC_UUID *uuid, const TEEC_UUID *ns, 23 const void *name, size_t size); 24 #endif /*OPENSSL_FOUND*/ 25 #endif 26