changed password hashing

This commit is contained in:
2025-11-09 18:39:37 +05:00
parent e03c651cef
commit b662a85348
2 changed files with 12 additions and 12 deletions

View File

@@ -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
//////////////////////////////////////////////////////////////////////////////
// //