[kgm] feat: add decipher self-test on startup

This commit is contained in:
鲁树人
2024-09-15 23:53:00 +01:00
parent da806d7ad4
commit 92a52c1565
2 changed files with 42 additions and 0 deletions

View File

@@ -14,6 +14,12 @@ pub enum KugouError {
#[error("Unsupported cipher version: {0}")]
UnsupportedCipherVersion(u32),
#[error("Not KGM File (magic mismatch)")]
NotKGMFile,
#[error("Unsupported cipher (self-test failed)")]
SelfTestFailed,
}
pub trait Decipher {