From 2a6db822ffdc0277607d70091be02afb4b7dced1 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Fri, 9 Feb 2024 20:50:17 +0100 Subject: [PATCH] Fix crypto primitives --- include/relay/CryptoPrimitives.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/relay/CryptoPrimitives.h b/include/relay/CryptoPrimitives.h index 1053367..0af5bbb 100644 --- a/include/relay/CryptoPrimitives.h +++ b/include/relay/CryptoPrimitives.h @@ -7,37 +7,37 @@ /** * @brief A private key for asymmetric cryptography */ -typedef struct { +struct PrivateKey { /// @brief The size of a private key static const int size = 32; uint8_t bytes[size]; -} PrivateKey; +}; /** * @brief A public key for asymmetric cryptography */ -typedef struct { +struct PublicKey { /// @brief The size of a public key static const int size = 32; uint8_t bytes[size]; -} PublicKey; +}; /** * @brief A signature of some data using a private key */ -typedef struct { +struct Signature { /// @brief The size of a message signature static const int size = 64; uint8_t bytes[size]; -} Signature; +}; #pragma pack(pop) \ No newline at end of file