Enum EncryptionAlgorithm
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Specifies the encryption algorithm to use for data protection.
public enum EncryptionAlgorithm
Fields
Aes256CbcHmac = 1AES-256 with CBC mode and HMAC-SHA256 for authentication. Legacy support only; prefer AES-256-GCM for new implementations.
Aes256Gcm = 0AES-256 with GCM mode (authenticated encryption). Recommended for field-level encryption. Provides both confidentiality and integrity.
Remarks
Only AES-256 algorithms are supported. AES-128 variants are not included as they do not meet
the framework's minimum security requirements. A None value is intentionally omitted --
to disable encryption, do not register the encryption middleware rather than using a "no-op" algorithm.
Use Aes256Gcm for all new implementations. Aes256CbcHmac is provided for legacy migration scenarios only. FIPS 140-2 compliance requires validated cryptographic modules.