Table of Contents

Class DefaultFipsDetector

Namespace
Excalibur.Compliance.Encryption
Assembly
Excalibur.Compliance.dll

Default implementation of IFipsDetector that checks the operating system for FIPS 140-2 compliance mode.

public sealed class DefaultFipsDetector : IFipsDetector
Inheritance
DefaultFipsDetector
Implements
Inherited Members

Remarks

FIPS 140-2 status is determined by:

  • Windows: CryptoConfig.AllowOnlyFipsAlgorithms (registry setting)
  • Linux: /proc/sys/crypto/fips_enabled kernel parameter
  • macOS: Not applicable (uses Common Criteria certification)

This implementation caches the FIPS status on first access since it cannot change without a system restart.

Constructors

DefaultFipsDetector(ILogger<DefaultFipsDetector>)

Initializes a new instance of the DefaultFipsDetector class.

public DefaultFipsDetector(ILogger<DefaultFipsDetector> logger)

Parameters

logger ILogger<DefaultFipsDetector>

The logger for diagnostics.

Properties

IsFipsEnabled

Gets a value indicating whether the system is running in FIPS 140-2 mode.

public bool IsFipsEnabled { get; }

Property Value

bool

Methods

GetStatus()

Gets the detailed FIPS compliance status of the current system.

public FipsDetectionResult GetStatus()

Returns

FipsDetectionResult

A status object containing platform and validation details.