`Argon2.hash` fails on MacOS (aarch64-darwin)
- Dominant language
- Haskell
- Stars
- 3
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Error msg, for ref.:
```
src/Passetto/Crypto.hs:122:26: error:
• Couldn't match expected type ‘[Proxy
"cryptonite:Crypto.KDF.Argon2.hash is known to be broken on this architecture. See https://github.com/haskell-crypto/cryptonite/issues/360"]’
with actual type ‘Argon2.Options’
• In the first argument of ‘Argon2.hash’, namely
‘keyDerivationOptions’
In the first argument of ‘(&)’, namely
‘Argon2.hash keyDerivationOptions pw salt secretbox_keybytes’
In the expression:
Argon2.hash keyDerivationOptions pw salt secretbox_keybytes
& throwCryptoError
|
122 | let skBs = Argon2.hash keyDerivationOptions pw salt secretbox_keybytes
```
check here: https://github.com/haskell-crypto/cryptonite/issues/360
Maybe consider using a different hashing algorithm based on `cabal_flags`, similar to what this PR did: https://github.com/cdepillabout/password/pull/63
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.