Skip to content

No associated data (AAD) #12

@xayaank

Description

@xayaank

Currently passes:
AESGCM(key).encrypt(iv, data, None)

Meaning:
header is NOT authenticated
attacker can flip MAGIC/VERSION without breaking decryption logic early

BETTER (include header as AAD):

AESGCM(key).encrypt(iv, data, HEADER)

and:

AESGCM(key).decrypt(iv, ct_and_tag, HEADER)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions