Skip to content

negative pLen #4

@bennetyee

Description

@bennetyee

aadLen, pLen := len(additionalData), len(ciphertext)-TagSize

negative pLen when len(cipherText) < TagSize is checked by writeLenVec which is a bit weird since it's usually nice to check nearer where the possibly bad value is computed.

a comment on L170 on why aadLen < 0 check is not necessary (and remove the commented out check code) would be nice.

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