TestimoX

API Reference

Class

RocaDetector

Namespace ADPlayground.Pki.Roca
Assembly ADPlayground
Modifiers static

Pluggable ROCA fingerprint evaluator. This class supports loading an external dataset (modulus and residue sets) and evaluating RSA moduli for susceptibility. If no dataset is loaded, IsAvailable is false and evaluation is not performed.

Inheritance

  • Object
  • RocaDetector

Methods

public static Void ConfigureFromEnvironment() #
Returns: Void

Load dataset from environment variables if available. Checks: TESTIMOX_ROCA_DATASET, ADP_ROCA_DATASET

public static Void ConfigureFromFile(String path) #
Returns: Void

Attempts to load a fingerprint dataset from JSON. Expected flexible schema: {"modulus":"<decimal or 0xHEX string>","residues":{"2048":["<dec|0xHEX>", ...],"1024":[ ... ]}}

Parameters

path System.String requiredposition: 0
public static Boolean TryIsSusceptible(Byte[] modulusBigEndian, Int32 keySize, out Boolean susceptible) #
Returns: Boolean

Tries to evaluate susceptibility using a loaded dataset.

Parameters

modulusBigEndian System.Byte[] requiredposition: 0
keySize System.Int32 requiredposition: 1
susceptible System.Boolean@ requiredposition: 2

Properties

public static Boolean IsAvailable { get; } #

True when a ROCA dataset has been loaded and checks can be performed.