feat: adapt for qmc key v2

This commit is contained in:
Unlock Music Dev
2022-11-19 07:25:37 +08:00
parent 7b37e4dd3c
commit f05ae61aff
2 changed files with 54 additions and 5 deletions

View File

@@ -131,6 +131,9 @@ func (d *Decoder) readRawKey(rawKeyLen int64) error {
return err
}
// clean suffix NULs
rawKeyData = bytes.TrimRight(rawKeyData, "\x00")
d.decodedKey, err = DecryptKey(rawKeyData)
if err != nil {
return err