From 0bc41054fbafbe2394a158e06850347243457b53 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 15 Oct 2021 19:37:42 +0200 Subject: style: clang-format --- include/sha.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/sha.h') diff --git a/include/sha.h b/include/sha.h index 255c769..8459ca2 100644 --- a/include/sha.h +++ b/include/sha.h @@ -7,17 +7,19 @@ #ifndef HMACSHA256_SHA_H_ #define HMACSHA256_SHA_H_ -#include -#include +#include +#include namespace hmacsha256 { class SHA { public: - SHA() { + SHA() + { digest_ = new uint8_t[32]; } - ~SHA() { + ~SHA() + { delete digest_; } @@ -25,6 +27,7 @@ public: virtual uint8_t* digest() = 0; virtual std::string hexdigest() = 0; + protected: uint8_t* digest_; @@ -51,7 +54,6 @@ protected: virtual void transform() = 0; }; - } // namespace hmacsha256 #endif // HMACSHA256_SHA_H_ -- cgit v1.2.3-18-g5258