Skip to content

AESSIV doesn't support nonce #9799

@taylor-cedar

Description

@taylor-cedar

The AESSIV class implemented in this PR and converted in this PR
encrypt function does not support nonce and instead passes b'' in as the nonce always. It appears to be changed in the rust version (don't know rust very well).

Can we add nonce as a param for AES SIV encrypt and decrypt? It feels like it should be required IMO, so people can opt-in to deterministic encryption instead of having it out of the box.

encrypt(self, data: bytes, nonce: typing.Optional[bytes], associated_data: typing.Optional[typing.List[bytes]])

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