Skip to content

Recommending CTR is dangerous, if the same key is used twice #113

@vbakke

Description

@vbakke

AES-CTR fails catastrophically when one reuses the same key, and the same IV/counter.

Could you please update the README to warn people to never, ever, ever reuse the IV when using AES-CTR?
When using CTR, the developer has to create a method of ensuring that a new IV/counter is used every time, if the is a chance that the key can be used.

Therefore the default should probably not start counting at 1, but at a random number, unless the developer explicitly specify a counter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions