Skip to content

math/bits: Add, Mul and Sub are not constant time #31229

Closed
@FiloSottile

Description

@FiloSottile

These functions were added in #24813 to be intrinsified for high performance code like cryptography.

Cryptography code also needs to be constant time most of the time, so it would be good for the Go fallbacks to try to be constant time. (I realize that a smart compiler can rewrite them.)

The fallbacks are going to be slow anyway, so I don’t think there’s a big performance concern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions