constant-time-testing

Detect timing-based leaks in cryptographic implementations using dudect and Timecop.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/Superlend/superloop-core-contracts --skill constant-time-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-testing
Source: https://github.com/Superlend/superloop-core-contracts/tree/main/.cursor/skills/testing-handbook-skills/skills/constant-time-testing
Command: npx skills add https://github.com/Superlend/superloop-core-contracts --skill constant-time-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Constant-time testing detects timing side channels in cryptographic code, helping teams identify exploitable leaks in crypto implementations.

Core Features & Use Cases

  • Statistical detection: Use dudect to measure timing differences across secret and non-secret inputs.
  • Dynamic tracing: Use Timecop to pinpoint the exact leakage location in code paths.
  • Audit & CI integration: Integrate constant-time checks into CI pipelines to monitor crypto code continuously.

Quick Start

Begin by crafting a small cryptographic function and a harness, run a dudect-based statistical test, then apply Timecop to trace leaks and fix timing branches.

Frequently Asked Questions about constant-time-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect timing side channels in cryptographic code?

Detect timing side channels in cryptographic code by applying static analysis, dynamic tracing, and statistical testing to identify exploitable timing leaks across crypto primitives and libraries.

What is the best way to audit cryptographic implementations for timing leaks?

The best way to audit cryptographic implementations for timing leaks is using dudect for statistical measurement of timing differences and Timecop for dynamic tracing to pinpoint exact leakage locations.

Can I integrate constant-time testing into a CI pipeline?

Yes, you can integrate constant-time testing into CI pipelines to continuously monitor crypto code, applying dudect-based statistical tests and Timecop tracing to catch timing leaks automatically.

How does dudect measure timing differences in cryptographic primitives?

Dudect measures timing differences in cryptographic primitives by running statistical tests that compare execution times across secret and non-secret inputs to detect data-dependent timing variations.

Do I need Timecop and dudect to trace timing attack vulnerabilities?

Yes, you need dudect and Timecop to trace timing attack vulnerabilities: dudect performs statistical detection of timing differences, while Timecop provides dynamic tracing to pinpoint exact leakage locations in code paths.

When should I use dynamic tracing vs static analysis for timing attacks?

Use static analysis for broad auditing of crypto code, dudect for statistical detection of timing differences across inputs, and Timecop dynamic tracing when you need to pinpoint the exact leakage location in specific code paths.