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

Test failure of crypton-0.34 on aarch64-darwin with GHC 9.0.2 #35

Open
sternenseemann opened this issue Apr 27, 2024 · 3 comments
Open

Comments

@sternenseemann
Copy link

    Argon2
      KATs
        1:                                   FAIL (0.10s)
          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.

Uses GHC 9.0.2 and the following dependencies have been chosen:

Configuring crypton-0.34...
Flags chosen: check_alignment=False, integer-gmp=True,
old_toolchain_inliner=False, support_aesni=True, support_deepseq=True,
support_pclmuldq=True, support_rdrand=True, support_sse=False,
use_target_attributes=True
Dependency base: using base-4.15.1.0
Dependency basement >=0.0.6: using basement-0.0.16
Dependency bytestring: using bytestring-0.10.12.1
Dependency deepseq: using deepseq-1.4.5.0
Dependency ghc-prim: using ghc-prim-0.7.0
Dependency integer-gmp: using integer-gmp-1.1
Dependency memory >=0.14.18: using memory-0.18.0
Dependency base <10: using base-4.15.1.0
Dependency bytestring: using bytestring-0.10.12.1
Dependency crypton: using crypton-0.34
Dependency memory: using memory-0.18.0
Dependency tasty: using tasty-1.4.3
Dependency tasty-hunit: using tasty-hunit-0.10.1
Dependency tasty-kat: using tasty-kat-0.0.3
Dependency tasty-quickcheck: using tasty-quickcheck-0.10.2
Source component graph:
    component lib
    component test:test-crypton dependency lib
Configured component graph:
    component crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        include base-4.15.1.0
        include basement-0.0.16-Klm23hGhb6c6Td2Q8VURcD
        include bytestring-0.10.12.1
        include deepseq-1.4.5.0
        include ghc-prim-0.7.0
        include integer-gmp-1.1
        include memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
    component crypton-0.34-4l4d0ckVPgn6AH0Z1QQoDG-test-crypton
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        include memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
        include tasty-1.4.3-3Nz5RK6KAj43KlWRkxBYQF
        include tasty-hunit-0.10.1-7wDvmAI9jixInYspT27awL
        include tasty-kat-0.0.3-KevRME1dmmrI4a3YZ1CPqo
        include tasty-quickcheck-0.10.2-4oRZ1TdYDHk7QCPBY8lqbM
Linked component graph:
    unit crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        include base-4.15.1.0
        include basement-0.0.16-Klm23hGhb6c6Td2Q8VURcD
        include bytestring-0.10.12.1
        include deepseq-1.4.5.0
        include ghc-prim-0.7.0
        include integer-gmp-1.1
        include memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
        Crypto.Cipher.AES=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.AES,Crypto.Cipher.AESGCMSIV=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.AESGCMSIV,Crypto.Cipher.Blowfish=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Blowfish,Crypto.Cipher.CAST5=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.CAST5,Crypto.Cipher.Camellia=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Camellia,Crypto.Cipher.ChaCha=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.ChaCha,Crypto.Cipher.ChaChaPoly1305=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.ChaChaPoly1305,Crypto.Cipher.DES=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.DES,Crypto.Cipher.RC4=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.RC4,Crypto.Cipher.Salsa=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Salsa,Crypto.Cipher.TripleDES=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.TripleDES,Crypto.Cipher.Twofish=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Twofish,Crypto.Cipher.Types=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Types,Crypto.Cipher.Utils=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.Utils,Crypto.Cipher.XSalsa=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Cipher.XSalsa,Crypto.ConstructHash.MiyaguchiPreneel=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.ConstructHash.MiyaguchiPreneel,Crypto.Data.AFIS=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Data.AFIS,Crypto.Data.Padding=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Data.Padding,Crypto.ECC=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.ECC,Crypto.ECC.Edwards25519=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.ECC.Edwards25519,Crypto.Error=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Error,Crypto.Hash=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Hash,Crypto.Hash.Algorithms=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Hash.Algorithms,Crypto.Hash.IO=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Hash.IO,Crypto.KDF.Argon2=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.Argon2,Crypto.KDF.BCrypt=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.BCrypt,Crypto.KDF.BCryptPBKDF=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.BCryptPBKDF,Crypto.KDF.HKDF=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.HKDF,Crypto.KDF.PBKDF2=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.PBKDF2,Crypto.KDF.Scrypt=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.KDF.Scrypt,Crypto.MAC.CMAC=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.MAC.CMAC,Crypto.MAC.HMAC=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.MAC.HMAC,Crypto.MAC.KMAC=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.MAC.KMAC,Crypto.MAC.KeyedBlake2=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.MAC.KeyedBlake2,Crypto.MAC.Poly1305=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.MAC.Poly1305,Crypto.Number.Basic=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Basic,Crypto.Number.F2m=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.F2m,Crypto.Number.Generate=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Generate,Crypto.Number.ModArithmetic=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.ModArithmetic,Crypto.Number.Nat=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Nat,Crypto.Number.Prime=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Prime,Crypto.Number.Serialize=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Serialize,Crypto.Number.Serialize.Internal=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Serialize.Internal,Crypto.Number.Serialize.Internal.LE=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Serialize.Internal.LE,Crypto.Number.Serialize.LE=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Number.Serialize.LE,Crypto.OTP=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.OTP,Crypto.PubKey.Curve25519=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Curve25519,Crypto.PubKey.Curve448=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Curve448,Crypto.PubKey.DH=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.DH,Crypto.PubKey.DSA=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.DSA,Crypto.PubKey.ECC.DH=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.DH,Crypto.PubKey.ECC.ECDSA=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.ECDSA,Crypto.PubKey.ECC.Generate=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.Generate,Crypto.PubKey.ECC.P256=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.P256,Crypto.PubKey.ECC.Prim=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.Prim,Crypto.PubKey.ECC.Types=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECC.Types,Crypto.PubKey.ECDSA=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECDSA,Crypto.PubKey.ECIES=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.ECIES,Crypto.PubKey.Ed25519=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Ed25519,Crypto.PubKey.Ed448=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Ed448,Crypto.PubKey.EdDSA=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.EdDSA,Crypto.PubKey.MaskGenFunction=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.MaskGenFunction,Crypto.PubKey.RSA=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA,Crypto.PubKey.RSA.OAEP=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA.OAEP,Crypto.PubKey.RSA.PKCS15=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA.PKCS15,Crypto.PubKey.RSA.PSS=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA.PSS,Crypto.PubKey.RSA.Prim=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA.Prim,Crypto.PubKey.RSA.Types=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.RSA.Types,Crypto.PubKey.Rabin.Basic=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Rabin.Basic,Crypto.PubKey.Rabin.Modified=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Rabin.Modified,Crypto.PubKey.Rabin.OAEP=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Rabin.OAEP,Crypto.PubKey.Rabin.RW=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Rabin.RW,Crypto.PubKey.Rabin.Types=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.PubKey.Rabin.Types,Crypto.Random=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Random,Crypto.Random.Entropy=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Random.Entropy,Crypto.Random.Entropy.Unsafe=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Random.Entropy.Unsafe,Crypto.Random.EntropyPool=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Random.EntropyPool,Crypto.Random.Types=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Random.Types,Crypto.System.CPU=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.System.CPU,Crypto.Tutorial=crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU:Crypto.Tutorial
    unit crypton-0.34-4l4d0ckVPgn6AH0Z1QQoDG-test-crypton
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        include memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
        include tasty-1.4.3-3Nz5RK6KAj43KlWRkxBYQF
        include tasty-hunit-0.10.1-7wDvmAI9jixInYspT27awL
        include tasty-kat-0.0.3-KevRME1dmmrI4a3YZ1CPqo
        include tasty-quickcheck-0.10.2-4oRZ1TdYDHk7QCPBY8lqbM
Ready component graph:
    definite crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        depends base-4.15.1.0
        depends basement-0.0.16-Klm23hGhb6c6Td2Q8VURcD
        depends bytestring-0.10.12.1
        depends deepseq-1.4.5.0
        depends ghc-prim-0.7.0
        depends integer-gmp-1.1
        depends memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
    definite crypton-0.34-4l4d0ckVPgn6AH0Z1QQoDG-test-crypton
        depends base-4.15.1.0
        depends bytestring-0.10.12.1
        depends crypton-0.34-GmdOBL5xPRcLgQfiRbzMiU
        depends memory-0.18.0-6PY8CH10CjoGfoSTDIw1Hp
        depends tasty-1.4.3-3Nz5RK6KAj43KlWRkxBYQF
        depends tasty-hunit-0.10.1-7wDvmAI9jixInYspT27awL
        depends tasty-kat-0.0.3-KevRME1dmmrI4a3YZ1CPqo
        depends tasty-quickcheck-0.10.2-4oRZ1TdYDHk7QCPBY8lqbM
Using Cabal-3.4.1.0 compiled by ghc-9.0
Using compiler: ghc-9.0.2
@kazu-yamamoto
Copy link
Owner

kazu-yamamoto commented Apr 28, 2024

I cannot reproduce this with GHC 9.0.2 on aarch64.
But I know tests for Scrypt cannot finish with GHC 9.6.5 on CentOS 7.9:

% ./dist/build/test-crypton/test-crypton -p Scrypt
cryptonite
  KDF
    Scrypt
      1: OK
      2: OK (0.05s)
      3: 

@sternenseemann
Copy link
Author

Curiously, I can't reproduce this failure on aarch64-linux, but only aarch64-darwin. x86_64-darwin is also unaffected.

@kazu-yamamoto
Copy link
Owner

I'm just a release manager for crypton and does not have ability to resolve internal issues.

Yes, updating code is a good idea.
Would you send a PR?

Relating to #35.

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