lib_um_crypto_rust/um_crypto/ncm
鲁树人 051805a019
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
feat: qrc file support
2024-10-06 19:55:41 +01:00
..
src [kgm/ncm/kwm] refactor: improve performance for large file 2024-09-15 23:25:19 +01:00
Cargo.toml feat: qrc file support 2024-10-06 19:55:41 +01:00
Readme.MD feat: basic ncm support 2024-09-14 14:56:39 +01:00

NCM Decoder

Glossary

  • LV: Length-Value Encoding, length is u32 in Little-Endian.

File Format

  • Magic: CTENFDAM
  • NCM Version: 01 (u8)
  • App version: ?? (u8)
  • ContentKey (LV)
  • Metadata (LV)
  • CRC32 (of all previous data)
  • Cover Block
  • Encrypted Audio

Cover Block

  • Length: u32: frame_len = len(image1 + image2)
  • Length: u32: img1_len = len(image1)
  • Data: u8[img1_len]: image1
  • Data: u8[frame_len - img1_len]: image2 - unknown format