DigitalTrustInteroperabilityLab

# ๐Ÿ” Digital Trust Interoperability Lab ### Vendor-Neutral PKI Diagnostics & Interoperability Platform **Test. Diagnose. Validate. Verify. Analyze. Report.** ![Platform](https://img.shields.io/badge/Platform-Windows%207--11-0078D6?style=flat-square&logo=windows) ![Architecture](https://img.shields.io/badge/Architecture-x86%20%7C%20WOW64-blue?style=flat-square) ![Framework](https://img.shields.io/badge/Framework-MFC%20%2F%20Win32-red?style=flat-square) ![Standards](https://img.shields.io/badge/Standards-X.509%20%7C%20PKCS%2311%20%7C%20CNG-green?style=flat-square) ![Version](https://img.shields.io/badge/Version-1.0.0-orange?style=flat-square) [![License](https://img.shields.io/badge/License-Source--Available-yellow?style=flat-square)](LICENSE.md) **๐Ÿ† Competition Submission โ€” Global Digital Trust Awards 2026** [**๐Ÿ“ฅ Download Latest Release**](https://github.com/samirasameforoughi/DigitalTrustInteroperabilityLab/releases/latest) ยท [**๐Ÿ“– Technical Whitepaper**](/DigitalTrustInteroperabilityLab/docs/Whitepaper.pdf) ยท [**๐Ÿ“Š Sample HTML Report**](https://samirasameforoughi.github.io/DigitalTrustInteroperabilityLab/docs/sample-report.html) ยท [**๐Ÿ—๏ธ Architecture**](/DigitalTrustInteroperabilityLab/docs/ARCHITECTURE.html) ยท [**๐Ÿ“ Standards**](/DigitalTrustInteroperabilityLab/docs/STANDARDS.html)

Overview

Digital Trust Interoperability Lab is a vendor-neutral Windows desktop platform for diagnosing interoperability issues across the Windows PKI stack.

Application โ†’ CryptoAPI / CNG โ†’ CSP / KSP โ†’ PKCS#11 โ†’ Token โ†’ Certificate โ†’ Private Key

It is built to answer a practical engineering question:

Which layer is failing, and what evidence supports that conclusion?

Typical diagnostic use cases include:

Local execution. No telemetry. Portable workflow.


Key Technical Finding

Cross-Path Signature Consistency

The platform compares digital signatures produced through two independent cryptographic access paths to the same hardware-backed private key:

Under the documented test conditions, both paths produced byte-identical SHA-256 signature output for the same input and the same private key.

Observed result

Path A (CryptoAPI): A7B7D28036C7E98ADA980F13740B75E9BFEB494A739D6486BB177106D844C525โ€ฆ Path B (PKCS#11): A7B7D28036C7E98ADA980F13740B75E9BFEB494A739D6486BB177106D844C525โ€ฆ Comparison: โœ“ BYTE-IDENTICAL

text

This is presented as an empirical cross-path consistency result for the tested token, provider configuration, signing mechanism, and input.

It is not presented as a universal proof that all implementations of CryptoAPI/CSP and PKCS#11 are equivalent.

See the Technical Whitepaper for methodology and test conditions.


Screenshots

Dashboard โ€” Full Diagnostic Run

Dashboard

Cryptographic Provider Enumeration

Providers

PKCS#11 Test Results

PKCS11

Cross-Path Signature Test

Signature


Core Capabilities

๐Ÿ” System & Environment Discovery

๐Ÿ”ง Cryptographic Provider Analysis

๐Ÿ“œ Certificate Deep Inspection

The tool distinguishes states such as:

PRESENT ยท ABSENT ยท TOKEN ยท NO BINDING ยท ACCESS ERROR

๐Ÿ”‘ PKCS#11 Dynamic Testing

โœ๏ธ Digital Signature Testing

๐Ÿ“Š HTML Diagnostic Reporting


Quick Start

System Requirements

Installation

No installer is required. Download and run:

๐Ÿ“ฅ Download Latest Release

First Run

  1. Launch DigitalTrustLab.exe
  2. Select Run All Diagnostics
  3. Review the Dashboard, Cryptographic Providers, and Certificates
  4. For PKCS#11 testing: PKCS#11 โ†’ Select DLL โ†’ run the test suite
  5. For signature testing: Signature Test โ†’ select certificate and file โ†’ Sign โ†’ Verify
  6. Generate the HTML diagnostic report

Security & Privacy Design

Property Design
Local execution Core diagnostics execute locally
No telemetry No application telemetry is implemented
No cloud dependency Core diagnostic functions do not require cloud services
Private-key protection Private keys remain under provider / token control
Sensitive buffer hygiene Relevant buffers are cleared after use where applicable
No key extraction The diagnostic workflow does not export private keys
Portable execution No installer is required for the distributed MVP

The tool should be evaluated against the security requirements of the target environment before deployment in regulated or high-assurance systems.


Architecture

The application is organized around three main functional areas:

Diagnostic Engine โ€” system discovery, provider inspection, certificate analysis

Signature Engine โ€” CryptoAPI-based signing, PKCS#11 direct signing, cross-path output comparison, verification workflows

PKCS#11 Loader โ€” dynamic vendor DLL loading, runtime function resolution, standard API testing

For diagrams and deeper design notes, see docs/ARCHITECTURE.md.


Standards & Interfaces

Standard / Interface Reference Scope
X.509 RFC 5280 Certificate parsing and validation
PKCS#11 v2.20+ Cryptographic token interface
PKCS#7 / CMS RFC 5652 Message syntax
PKCS#1 v2.1 RSA signature structures
Windows CryptoAPI Win32 Legacy CSP integration
CNG / KSP Windows Vista+ Modern provider integration
FIPS 180-4 SHA family Hash algorithms
OCSP RFC 6960 Certificate status checking
CRL RFC 5280 ยง5 Revocation list processing

The platform is built around standards-based interfaces and operating-system cryptographic APIs, while allowing vendor PKCS#11 modules to be tested dynamically.


๐Ÿ”ฌ Real-World Validation (click to expand)
The MVP has been validated against a real Windows PKI environment. **Test Environment** - **OS:** Windows 11 Enterprise, Build 26200.8875, Version 25H2 - **Hardware:** iPass USB Token - **PKCS#11:** iPass PKCS#11 API v1.2 - **CSP:** iPassCSPv1 - **KSP:** iPass Key Storage Provider **Finding 1 โ€” Independent Token Middleware Path** During testing, the token CSP continued to perform cryptographic operations while the Windows Smart Card service was stopped, indicating the provider uses its own middleware path. **Finding 2 โ€” Legacy Provider Hash Compatibility** 12 providers tested 7 providers did not provide the expected native SHA-256 behavior text **Finding 3 โ€” Cross-Path Signature Consistency** The same private key and input produced byte-identical signature output through both Windows CryptoAPI / CSP and PKCS#11 direct access under the documented test conditions. Additional details are provided in the [Technical Whitepaper](/DigitalTrustInteroperabilityLab/docs/Whitepaper.pdf).

๐Ÿ”ง Technical Details (click to expand)
| Item | Value | |---|---| | **Language** | C / C++ | | **Compiler** | Visual C++ 2008 | | **C++ Standard** | C++03-compatible | | **Framework** | MFC / Win32 | | **Target Architecture** | x86 | | **WOW64** | Supported | | **OS Target** | Windows 7 โ†’ Windows 11 | | **Dependencies** | Win32, MFC, Windows Cryptographic APIs | | **Distribution** | Portable executable | | **Installation** | None required | The codebase intentionally avoids `auto`, `nullptr`, lambdas, and range-based `for` to preserve compatibility with legacy enterprise Windows environments.

Documentation


Roadmap


Global Digital Trust Awards 2026

This project has been submitted to the Global Digital Trust Awards 2026 as an engineering and research prototype demonstrating practical, vendor-neutral PKI interoperability diagnostics.


About the Author

Samira Same Foroughi โ€” Digital Trust & PKI Engineer

Specializing in digital signatures, PKI infrastructure, cryptographic tokens, PKCS#11, Windows CSP / CNG, and hardware-backed cryptography.


License

Source-Available License โ€” see LICENSE.md for full terms.


**Vendor-Neutral ยท Standards-Based ยท Locally Executed** *Built for practical PKI interoperability diagnostics.* **ยฉ 2026 Samira Same Foroughi**