Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Argon2 KATs test failure on aarch64-darwin (apple silicon) #360

Closed
roberth opened this issue Mar 8, 2022 · 1 comment
Closed

Argon2 KATs test failure on aarch64-darwin (apple silicon) #360

roberth opened this issue Mar 8, 2022 · 1 comment

Comments

@roberth
Copy link

roberth commented Mar 8, 2022

The following test fails on aarch64-darwin with GHC 9.0.2:

    Argon2
      KATs
        1:                                   FAIL (0.07s)
          tests/KAT_Argon2.hs:35:
          expected: CryptoPassed "\193b\136\&2\DC4}\151 \197\189\FS\253a6pxr\159m\251o\143\234\159\249\129X\224\215\129n\208"
           but got: CryptoPassed "bT\163\DC3\128\243'\167\209\&7\ESCQ\181\206\198\146\132\190)B\205WC\201\251\192_\EOT\141\247\243\DLE"
          Use -p '/Argon2.KATs.1/' to rerun this test only.

Built using NixOS/nixpkgs#160733 rev 283225d2983d6471cd0c3ab9547ba56a340781b8

$ nix-build --argstr system aarch64-darwin -A haskellPackages.cryptonite
roberth added a commit to hercules-ci/nixpkgs that referenced this issue Mar 8, 2022
A workaround for packages that don't use this hash function.
See haskell-crypto/cryptonite#360
@roberth
Copy link
Author

roberth commented Mar 8, 2022

I've tried to update the cbits/argon2 files, but that is a significant undertaking, as the process for this isn't documented afaict and the diff from the original is huge because of many renames.
I'm unblocking nixpkgs by disabling the Argon2.hash function for the time being.

Also consider the existing cryptonite prs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants