API Reference
Class
RocaDetector
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:
VoidLoad dataset from environment variables if available. Checks: TESTIMOX_ROCA_DATASET, ADP_ROCA_DATASET
public static Void ConfigureFromFile(String path) #Returns:
VoidAttempts to load a fingerprint dataset from JSON. Expected flexible schema: {"modulus":"<decimal or 0xHEX string>","residues":{"2048":["<dec|0xHEX>", ...],"1024":[ ... ]}}
Parameters
- path System.String
public static Boolean TryIsSusceptible(Byte[] modulusBigEndian, Int32 keySize, out Boolean susceptible) #Returns:
BooleanTries to evaluate susceptibility using a loaded dataset.
Parameters
- modulusBigEndian System.Byte[]
- keySize System.Int32
- susceptible System.Boolean@
Inherited Methods
Properties
public static Boolean IsAvailable { get; } #True when a ROCA dataset has been loaded and checks can be performed.