Vesa Jääskeläinen | 7e2a230 | 2020-04-05 20:11:58 +0300 | [diff] [blame] | 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 | |
Victor Chong | 8e070bc | 2020-05-13 09:59:33 +0100 | [diff] [blame] | 18 | #ifdef OPENSSL_FOUND |
Vesa Jääskeläinen | e8a3e84 | 2020-04-30 16:59:35 +0300 | [diff] [blame] | 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); |
Victor Chong | 8e070bc | 2020-05-13 09:59:33 +0100 | [diff] [blame] | 24 | #endif /*OPENSSL_FOUND*/ |
Vesa Jääskeläinen | 7e2a230 | 2020-04-05 20:11:58 +0300 | [diff] [blame] | 25 | #endif |