Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.Security

Common analyzer diagnostics, key-purpose errors, and Native AOT exclusions in EricksonLopez.Security (1.0.0).

  • ELS0001 (Non-constant-time comparison): Replace == / SequenceEqual on secret digests or tokens with IConstantTimeComparer (ConstantTimeComparer.Shared).
  • ELS0002 (Undisposed SecretBuffer): Always bind SecretBuffer / ISecretBuffer in a using statement so CryptographicOperations.ZeroMemory executes deterministically; when decrypting via ISecretProtector, unwrap Result<byte[]> with UnprotectAsync or dispose the ISecretBuffer directly without leaving a Result<ISecretBuffer> variable undisposed.
  • ELS0003 (Hardcoded secret): Pass secrets from configuration, environment variables, or KMS/Vault providers rather than inline string literals.
  • ELS0005 (Logging raw secret): Never pass SecretBuffer or plaintext secrets to ILogger calls.
  • Saml2, XmlDSig, GoogleCloud, OpenTelemetry: These 4 runtime packages set IsAotCompatible=false; keep them on JIT services while WebAuthn.Fido2 and WebAuthn.Fido2.Mds3 run cleanly on Native AOT.
  • SecurityError.InvalidKey: Activate a key with KeyPurpose.SecretProtection (or KeyPurpose.Encryption) before calling ISecretProtector.ProtectAsync.