summaryrefslogtreecommitdiff
path: root/yescrypt-opt.c
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2018-06-26 00:44:33 +0300
committerVitaly Chikunov <vt@altlinux.org>2018-08-24 16:56:52 +0300
commita32bb84b28a6c750ebb4b7e951dad301864d9115 (patch)
tree4cd0855a9775de88ede2b0f38a5df07b7e09a637 /yescrypt-opt.c
parent565c8f2fa272aa10d421b1765c5c1f2f10177dc9 (diff)
downloadlibxcrypt-a32bb84b28a6c750ebb4b7e951dad301864d9115.tar.gz
libxcrypt-a32bb84b28a6c750ebb4b7e951dad301864d9115.tar.bz2
libxcrypt-a32bb84b28a6c750ebb4b7e951dad301864d9115.zip
Add yescrypt backend and tests
yescrypt is modern scalable KDF and password hashing scheme. Reference and upstream is at http://www.openwall.com/yescrypt/
Diffstat (limited to 'yescrypt-opt.c')
-rw-r--r--yescrypt-opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yescrypt-opt.c b/yescrypt-opt.c
index 928bd97..0925373 100644
--- a/yescrypt-opt.c
+++ b/yescrypt-opt.c
@@ -30,6 +30,8 @@
#include "crypt-port.h"
+#if INCLUDE_yescrypt
+
#pragma GCC diagnostic ignored "-Wcast-align"
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
@@ -1423,3 +1425,5 @@ int yescrypt_free_local(yescrypt_local_t *local)
{
return free_region(local);
}
+
+#endif /* INCLUDE_yescrypt */