Skip to content

Invalid message authentication code #186

@sterichards

Description

@sterichards

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"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions