haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

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

Closed roberth closed 1 year ago

roberth commented 2 years ago

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 https://github.com/NixOS/nixpkgs/pull/160733 rev 283225d2983d6471cd0c3ab9547ba56a340781b8

$ nix-build --argstr system aarch64-darwin -A haskellPackages.cryptonite
roberth commented 2 years ago

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