Enum DataEncryptionKeyMaterialFailure
- Namespace
- MailFathom.Infrastructure.DataEncryption
- Assembly
- MailFathom.Infrastructure.dll
Why configured key material could not be turned into a key.
public enum DataEncryptionKeyMaterialFailure
Fields
NotBase64 = 0The material is not base64.
WrongLength = 1The material is base64 but does not decode to the length an AES-256 key takes.
Remarks
It is the whole permitted vocabulary for reporting a bad key: neither the material nor its length reaches an operator's console, because either would narrow what an attacker reading the log has to guess.