aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/shadriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libmd/shadriver.c')
-rw-r--r--lib/libmd/shadriver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libmd/shadriver.c b/lib/libmd/shadriver.c
index e7e7b5d152d0..b643f964802a 100644
--- a/lib/libmd/shadriver.c
+++ b/lib/libmd/shadriver.c
@@ -24,6 +24,7 @@ __FBSDID("$FreeBSD$");
#include "sha256.h"
#include "sha384.h"
#include "sha512.h"
+#include "sha512t.h"
/* The following makes SHA default to SHA-1 if it has not already been
* defined with C compiler flags. */
@@ -43,6 +44,9 @@ __FBSDID("$FreeBSD$");
#elif SHA == 512
#undef SHA_Data
#define SHA_Data SHA512_Data
+#elif SHA == 512256
+#undef SHA_Data
+#define SHA_Data SHA512_256_Data
#endif
/* Digests a string and prints the result. */