Skip to content

write in constant-time #12

@jacksonwalters

Description

@jacksonwalters

Typically, the big issue when trying to make code like yours constant time is the modular reduction x -> x mod q. This can be fixed by using something like Barrett reduction, see for example https://words.filippo.io/dispatches/kyber-math/

As written, the code is not constant-time and vulnerable to timing attacks.

https://research.redhat.com/blog/article/the-need-for-constant-time-cryptography/

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