mirror of
https://github.com/kopia/kopia.git
synced 2026-01-22 05:18:06 -05:00
Previously, empty master keys were passed to the underlying cryptographic primitives (HKDF, AEAD, etc.). While this worked because the authentication mechanisms returned an error, it's best to avoid passing empty master keys to these primitives in the first place. This refactor avoids passing empty master keys and enforces this via an assertion in the key derivation function.