Skip to content

Bug: tag is incorrectly extracted from bundle in ShieldNote.decryptRandom #126

@Robert-MacWha

Description

@Robert-MacWha

The tag occupies bytes 32-64 in bundle[0]. However, the code extracts 48 bytes from 16-64.

Note: This is currently non-breaking since AES.decryptGCM trims the incoming iv and tag with ByteUtils.trim. However it's incorrect and relies on side-effects of the utility code.

#125

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