diff --git a/src_crypt/picrypt.cpp b/src_crypt/picrypt.cpp index aea40fc7..5b683062 100644 --- a/src_crypt/picrypt.cpp +++ b/src_crypt/picrypt.cpp @@ -359,6 +359,7 @@ PIByteArray PICrypt::decrypt(const PIByteArray & crypt_data, const PIByteArray & PIByteArray PICrypt::passwordHash(const PIString & password, const PIByteArray & seed) { +#ifdef crypto_pwhash_ALG_ARGON2I13 // char out[crypto_pwhash_STRBYTES]; PIByteArray pass = password.toUTF8(); PIByteArray n; @@ -374,6 +375,9 @@ PIByteArray PICrypt::passwordHash(const PIString & password, const PIByteArray & PIByteArray ret; ret << ph << n << crypto_pwhash_argon2i_opslimit_moderate() << crypto_pwhash_argon2i_memlimit_moderate(); return ret; +#else + return PIByteArray(); +#endif }