juspay / juspay/passetto

`Argon2.hash` fails on MacOS (aarch64-darwin)

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.