This commit is contained in:
Lauri Kasanen
2022-07-26 10:38:14 +00:00
committed by Matthew McClaskey
parent ba902f8194
commit 3b40a92548
72 changed files with 3314 additions and 52 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <openssl/x509.h>
#include <stddef.h>
#include <stdint.h>
const size_t kSHA1Length = 20;
struct WuSHA1Digest {
uint8_t bytes[kSHA1Length];
};
struct WuCert {
WuCert();
~WuCert();
EVP_PKEY* key;
X509* x509;
char fingerprint[96];
};
WuSHA1Digest WuSHA1(const uint8_t* src, size_t len, const void* key,
size_t keyLen);