Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default parameters for argon2 for otp #2472

Open
hrxi opened this issue May 15, 2024 · 2 comments
Open

Set default parameters for argon2 for otp #2472

hrxi opened this issue May 15, 2024 · 2 comments

Comments

@hrxi
Copy link
Contributor

hrxi commented May 15, 2024

// Taken from Nimiq's JS implementation.
// TODO: Adjust.
pub const DEFAULT_ITERATIONS: u32 = 256;
pub const DEFAULT_SALT_LENGTH: usize = 32;

@hrxi
Copy link
Contributor Author

hrxi commented May 17, 2024

Probably also:

// Taken from https://github.com/nimiq/core-js/blob/c98d56b2dd967d9a9c9a97fe4c54bfaac743aa0c/src/main/generic/utils/crypto/CryptoWorkerImpl.js#L146
const MEMORY_COST: u32 = 512;

@Eligioo
Copy link
Member

Eligioo commented May 17, 2024

@hrxi hrxi added this to the Nimiq PoS Mainnet milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants