Skip to content

security: side-channel safety & constant-time operations #12

Description

@lonerapier

Guarantee constant-time arithmetic on secret values to prevent timing attacks.

Approach

  • Integrate the subtle crate for constant-time comparisons and conditionals.
  • Audit all field and share operations for secret-dependent branches.
  • Add ct_eq and Choice where needed.

Tasks

  • Integrate subtle crate.
  • Replace unsafe branches with subtle conditionals.
  • Add timing tests or analysis harness.
  • Update SECURITY.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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