Skip to content

EVP_SealInit with "authenticated" cipher, e.g. aes-256-gcm #17235

@rotdrop

Description

@rotdrop

Is it possible to combine EVP Authenticated encryption using GCM mode with EVP Asymmetric Encryption and Decryption of an Envelope?

At least the PHP-openssl extension openssl_seal() does not seem to support this, and that example in the OpenSSL-Wiki does not use GCM mode and consequently does not care about the authentication tag, which somehow would have to be remembered after sealing the data and to be installed in the cipher context when restoring the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions