RT4320/GH705: Fix PEM parsing bug.
[openssl.git] / crypto / evp / m_wp.c
index 9ab3c62fe9edd33eb5889c12ecaf00246b07104a..12b7765ece62c6f69c6ed3ea49780f96e1869561 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/evp/m_wp.c */
 
 #include <stdio.h>
 #include "internal/cryptlib.h"
@@ -9,20 +8,21 @@
 # include <openssl/objects.h>
 # include <openssl/x509.h>
 # include <openssl/whrlpool.h>
+# include "internal/evp_int.h"
 
 static int init(EVP_MD_CTX *ctx)
 {
-    return WHIRLPOOL_Init(ctx->md_data);
+    return WHIRLPOOL_Init(EVP_MD_CTX_md_data(ctx));
 }
 
 static int update(EVP_MD_CTX *ctx, const void *data, size_t count)
 {
-    return WHIRLPOOL_Update(ctx->md_data, data, count);
+    return WHIRLPOOL_Update(EVP_MD_CTX_md_data(ctx), data, count);
 }
 
 static int final(EVP_MD_CTX *ctx, unsigned char *md)
 {
-    return WHIRLPOOL_Final(md, ctx->md_data);
+    return WHIRLPOOL_Final(md, EVP_MD_CTX_md_data(ctx));
 }
 
 static const EVP_MD whirlpool_md = {