You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(kek): guard FileWrapper Wrap/Unwrap against nil/zero value (PR719 codex P2)
Wrap and Unwrap previously dereferenced w.aead unconditionally, so a
caller bypassing NewFileWrapper — var w kek.FileWrapper{} or a nil
*FileWrapper — would nil-deref panic on the first call. A wiring
mistake during bootstrap or rotation paths (where KEK loading is
mandatory) crashed the process instead of bubbling up a recoverable
error.
Add an ErrNilFileWrapper sentinel and check for nil receiver / nil
embedded AEAD at the top of both methods. Mirrors the
encryption.Cipher (0256bad) and encryption.Keystore (d922b09)
zero-value contracts.
0 commit comments