Skip to content

cipher/ascon: go routine safe? #415

@enj

Description

@enj

A quick peak at the ascon implementation suggests that the cipher is unsafe to use across go routines:

a.s[0] = ((kS * 8) << 56) | ((bcs * 8) << 48) | (permA << 40) | (pB << 32) | a.key[0]

I believe the general intent is for a cipher.AEAD to be safely reusable across go routines to avoid the setup cost.

Either way, it would be good to at least document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over something already in the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions