Skip to content

Invalid message authentication code #76

@sterichards

Description

@sterichards

I get this error on decrypt using 5.1

The encryption happens on a different project using paragonie/halite 4.6 which matches the version that this bundle uses

I can echo out the value of $data on line 44 of vendor/michaeldegroot/doctrine-encrypt-bundle/src/Encryptors/HaliteEncryptor.php and it shows the decrypted value without a problem

Something happens after that which generates the error "Invalid message authentication code" In Crypto.php line 193

After further investigation, the error is triggered from this check - if ($config->MAC_ALGO === 'BLAKE2b')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions