changed password hashing
This commit is contained in:
@@ -12,11 +12,10 @@
|
||||
/// @brief hashes password multiple times using its own hash as salt
|
||||
/// @param password some byte array
|
||||
/// @param out_buffer u8[PASSWORD_HASH_SIZE]
|
||||
/// @param iterations number of iterations
|
||||
void hash_password(Array(u8) password, u8* out_buffer, i32 iterations);
|
||||
/// @param rounds number of rounds
|
||||
void hash_password(Array(u8) password, u8* out_buffer, i32 rounds);
|
||||
#define PASSWORD_HASH_SIZE 32
|
||||
|
||||
#define __PASSWORD_HASH_LVL_ITERATIONS 1e5
|
||||
#define PASSWORD_HASH_LVL_ROUNDS 1e5
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
|
||||
Reference in New Issue
Block a user