constant-time-testing

Detect timing side channels in cryptographic code using formal verification and statistical testing.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/rohanbhatia27/rohanstutoring-redesign --skill constant-time-testing-rohanbhatia27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-time-testing
Source: https://github.com/rohanbhatia27/rohanstutoring-redesign/tree/main/.agents/skills/constant-time-testing
Command: npx skills add https://github.com/rohanbhatia27/rohanstutoring-redesign --skill constant-time-testing-rohanbhatia27

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ct-verif, sideTrail, fact, binsec, pitchfork, timecop, dudect, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for detecting timing vulnerabilities in cryptographic code, crucial for ensuring the security and integrity of cryptographic implementations.

Core Features & Use Cases

  • Timing Attack Detection: Identifies timing-based side channels in cryptographic code.
  • Use Case: Utilize this Skill to audit your crypto implementations and protect against timing attacks that can lead to the extraction of secret information.
  • Example: Employ this Skill to test an RSA decryption algorithm for timing vulnerabilities.

Quick Start

Analyze the 'example.c' file for timing vulnerabilities using the 'ct-verif' tool.

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 formal verification, symbolic execution, dynamic analysis, and statistical testing to identify vulnerabilities that leak secret information through execution time variations.

What is a timing attack in cryptographic implementations?

A timing attack in cryptographic implementations exploits execution time variations to extract secret data, requiring thorough auditing of cryptographic protocols to identify and mitigate timing vulnerabilities.

Can I audit an RSA decryption algorithm for timing vulnerabilities using formal verification?

Yes, you can audit an RSA decryption algorithm for timing vulnerabilities using formal verification tools like ct-verif to precisely identify timing side channels in cryptographic implementations.

How does statistical testing identify timing vulnerabilities in crypto code?

Statistical testing identifies timing vulnerabilities in crypto code by analyzing execution time measurements across different inputs to detect significant deviations that indicate potential timing side channels.

What's the best way to find timing side channels in cryptographic protocols?

The best way to find timing side channels in cryptographic protocols is combining symbolic execution, dynamic analysis, and statistical testing to comprehensively audit crypto implementations for timing vulnerabilities.

Does symbolic execution work for detecting timing attacks in cryptographic code?

Yes, symbolic execution works for detecting timing attacks in cryptographic code by exploring execution paths to identify timing variations dependent on secret data, complementing formal verification and dynamic analysis techniques.