From f4b6098c2359a75cc16275aad7ba2bf001261dea Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 20 Nov 2016 21:15:13 -0500 Subject: Move UUID utilities to hal.h; change attribute values to (const void *). --- hal_internal.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'hal_internal.h') diff --git a/hal_internal.h b/hal_internal.h index 0794d37..88424cf 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -285,24 +285,6 @@ extern hal_error_t hal_rpc_pkcs1_construct_digestinfo(const hal_hash_handle_t ha uint8_t *digest_info, size_t *digest_info_len, const size_t digest_info_max); -/* - * UUID stuff. All UUIDs we use (or are likely to use) are type 4 "random" UUIDs - * Some of this may need to move to hal.h. - */ - -#define HAL_UUID_TEXT_SIZE (sizeof("00112233-4455-6677-8899-aabbccddeeff")) - -static inline int hal_uuid_cmp(const hal_uuid_t * const a, const hal_uuid_t * const b) -{ - return memcmp(a, b, sizeof(hal_uuid_t)); -} - -extern hal_error_t hal_uuid_gen(hal_uuid_t *uuid); - -extern hal_error_t hal_uuid_parse(hal_uuid_t *uuid, const char * const string); - -extern hal_error_t hal_uuid_format(const hal_uuid_t * const uuid, char *buffer, const size_t buffer_len); - /* * CRC-32 stuff (for flash keystore, etc). Dunno if we want a Verilog * implementation of this, or if it would even be faster than doing it -- cgit v1.2.3