constant-time-testing

Detect timing side-channel vulnerabilities in cryptographic implementations.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/andrescardonas7/salchipapa-web --skill constant-time-testing-andrescardonas7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-testing
Source: https://github.com/andrescardonas7/salchipapa-web/tree/main/.cursor/skills/testing-handbook-skills/constant-time-testing
Command: npx skills add https://github.com/andrescardonas7/salchipapa-web --skill constant-time-testing-andrescardonas7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dudect, timecop, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you identify and mitigate timing vulnerabilities in cryptographic code, which can leak sensitive information through execution time differences.

Core Features & Use Cases

  • Detect Timing Leaks: Analyzes code for patterns that cause execution time to vary based on secret data.
  • Pinpoint Vulnerabilities: Identifies specific lines of code responsible for timing leaks.
  • Use Case: You have implemented a new encryption algorithm and suspect it might be vulnerable to timing attacks. Use this Skill to audit the implementation and ensure it runs in constant time, protecting your cryptographic secrets.

Quick Start

Use the constant-time-testing skill to audit the provided C code for timing vulnerabilities.

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-channel vulnerabilities in my cryptographic code?

To detect timing side-channel vulnerabilities, this Skill audits cryptographic implementations using statistical analysis and dynamic tracing. It identifies code patterns causing execution time to vary based on secret data and pinpoints the specific lines responsible for timing leaks.

What is a constant-time execution requirement in security-critical code?

Constant-time execution ensures security-critical code operations take the exact same time regardless of secret data values. This prevents timing side channels where attackers measure execution time differences to extract sensitive cryptographic information.

How do I audit C code for timing attacks during cryptographic primitive review?

You audit C code for timing attacks by applying dynamic tracing and statistical analysis to cryptographic primitives. This Skill processes provided C code to identify non-constant-time execution paths and flags specific operations leaking sensitive data through timing variations.

Does dudect work with timecop for identifying timing leaks?

Dudect and timecop are utilized as dynamic tracing and statistical analysis tools to identify timing leaks. They work together within this Skill to measure execution time variations and pinpoint exact code locations where cryptographic implementations fail to run in constant time.

What is the best way to ensure constant-time execution for sensitive cryptographic operations?

The best way to ensure constant-time execution is auditing your implementation with dynamic tracing tools and statistical analysis. This Skill evaluates cryptographic code to detect timing leaks, pinpoints vulnerable lines, and verifies that sensitive operations do not vary based on secret inputs.