Reduce memory allocations due to HMAC() and EVP_MD_*().
[tinc] / src / openssl / digest.h
index 1b1389d..d553977 100644 (file)
@@ -24,9 +24,9 @@
 
 struct digest {
        const EVP_MD *digest;
+       HMAC_CTX *hmac_ctx;
+       EVP_MD_CTX *md_ctx;
        int maclength;
-       int keylength;
-       char *key;
 };
 
 #endif