Add NanaCxCrypt

This commit is contained in:
2026-04-08 18:26:57 +08:00
parent b5aa53690c
commit 31d0c5c9d0
7 changed files with 329 additions and 50 deletions

View File

@@ -137,6 +137,14 @@ enum CryptType {
names_section_id: String,
random_seed: u32,
},
#[serde(rename_all = "PascalCase")]
NanaCxCrypt {
#[serde(flatten)]
cx: CxSchema,
names_section_id: String,
random_seed: u32,
yuz_key: Vec<u32>,
},
}
#[derive(Clone, Debug, Deserialize)]
@@ -192,6 +200,19 @@ impl Schema {
names_section_id.clone(),
*random_seed,
)?),
CryptType::NanaCxCrypt {
cx,
names_section_id,
random_seed,
yuz_key,
} => Box::new(cx::NanaCxCrypt::new(
self.base.clone(),
cx,
filename,
names_section_id.clone(),
*random_seed,
&yuz_key,
)?),
})
}
}