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

Invalid message authentication code #186

Open
sterichards opened this issue Apr 6, 2023 · 1 comment
Open

Invalid message authentication code #186

sterichards opened this issue Apr 6, 2023 · 1 comment

Comments

@sterichards
Copy link

sterichards commented Apr 6, 2023

This is being triggered on the condition $config->MAC_ALGO === 'BLAKE2b' invendor/paragonie/halite/src/Symmetric/Crypto.php

I don't understand why this is being triggered

It wouldn't be such a problem if vendor/paragonie/halite/src/Symmetric/Crypto.php wasn't final

I don't know if the SymmetricConfig class gives you any further clues:

  -config: array:8 [
    "ENCODING" => "base64urlsafe"
    "SHORTEST_CIPHERTEXT_LENGTH" => 124
    "NONCE_BYTES" => 24
    "HKDF_SALT_LEN" => 32
    "MAC_ALGO" => "BLAKE2b"
    "MAC_SIZE" => 64
    "HKDF_SBOX" => "Halite|EncryptionKey"
    "HKDF_AUTH" => "AuthenticationKeyFor_|Halite"
  ]
}
@paragonie-security
Copy link
Contributor

  1. What is the stack trace?
  2. Are you storing data in SQL?

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