Skip to content

Can I use AEAD without the integirty tag? Or why AEAD is not supported in command enc #22269

Answered by kroeckx
bowensd asked this question in Q&A
Discussion options

You must be logged in to vote

GCM has an authentication tag. In protocols like TLS, this tag is at the end of every TLS record. OpenSSL only decrypts whole TLS records, and so the tag is always checked before data is returned.

The problem with enc is that there is no standard for how to store meta data, like where is the IV, is it split in blocks of fixed size, and things like that. So the only option is that the tag is at the end of the file. If you want to support a safe mode of operation and only return decrypted data after the authentication tag has been verified, this means that you first need to decrypt everything, store it in memory, verify the authentication tag, and then return all the data.

The enc tool curr…

Replies: 23 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@admercs
Comment options

@t8m
Comment options

@eenthropy

This comment was marked as disruptive content.

@arapov
Comment options

@markg85
Comment options

Comment options

You must be logged in to vote
4 replies
@markg85
Comment options

@kroeckx
Comment options

@markg85
Comment options

@paulidale
Comment options

Answer selected by kroeckx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triaged: question The issue contains a question
Converted from issue

This discussion was converted from issue #12220 on October 03, 2023 20:09.