diff --git a/CHANGELOG.md b/CHANGELOG.md index 31d7ae4..13db5b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.3.2] — 2026-07-10 + +### Changed + +- Unit keys carry libfreemkv's new `UnitKey.variant_number`; every source + (keydb, online, VUK-derived) emits `0` — ordinary, non-forensic content — + via the `UnitKey::new` constructor. No behaviour change. Inherits + **libfreemkv 1.3.2**. + ## [1.3.1] — 2026-07-10 ### Licensing diff --git a/Cargo.toml b/Cargo.toml index 89b6059..40f3448 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "freemkv-keysources" -version = "1.3.1" +version = "1.3.2" edition = "2024" rust-version = "1.86" license = "MIT" diff --git a/src/keydb.rs b/src/keydb.rs index a9f18b1..6cd3f4f 100644 --- a/src/keydb.rs +++ b/src/keydb.rs @@ -184,10 +184,7 @@ impl KeydbSource { // 1. Terminal Unit Keys stored in the entry — directly usable, no // derivation. Preserve the keydb's CPS numbering (idx = num - 1). for (num, key) in &entry.unit_keys { - keys.push(UnitKey { - idx: num.saturating_sub(1), - key: *key, - }); + keys.push(UnitKey::new(num.saturating_sub(1), *key)); } // The disc's encrypted title keys (from Unit_Key_RO.inf) — what every diff --git a/src/lib.rs b/src/lib.rs index 84b2464..3421299 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,10 +47,7 @@ pub(crate) fn uks_from_vuk(vuk: &[u8; 16], enc_title_keys: &[[u8; 16]]) -> Vec UnitKey { - UnitKey { - idx: 0, - key: [b; 16], - } + UnitKey::new(0, [b; 16]) } #[test]