diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2020-06-13 16:15:34 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2020-10-11 13:08:03 +0200 |
commit | 76fbb33adf3cd0b6bcbe26dc47464904493160bd (patch) | |
tree | cfabff837f7153496faf41eb3853b9d6ac826a53 /utils/nwztools/upgtools/upg.c | |
parent | c8fa53050d30b667f224668ca5de2bb7f07a1b3d (diff) | |
download | rockbox-76fbb33adf3cd0b6bcbe26dc47464904493160bd.tar.gz rockbox-76fbb33adf3cd0b6bcbe26dc47464904493160bd.zip |
nwztools: fix MW-WM1/A30 KAS, fix KAS length
Split WM1A/WM1Z because they don't have the same KAS. On newer devices, the KAS
is actually 64 bytes, not 60. The strange thing is that "get_dnk_nvp kas" returns
60 bytes whereas "get_dnk_prop kas" returns 64, not sure why.
Change-Id: I944d3d838209ba58388439af0cdf5d7c74f1f7fc
Diffstat (limited to 'utils/nwztools/upgtools/upg.c')
-rw-r--r-- | utils/nwztools/upgtools/upg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/nwztools/upgtools/upg.c b/utils/nwztools/upgtools/upg.c index 28cfae4f37..599fbbeaf6 100644 --- a/utils/nwztools/upgtools/upg.c +++ b/utils/nwztools/upgtools/upg.c | |||
@@ -46,8 +46,9 @@ struct nwz_model_t g_model_list[] = | |||
46 | { "nwz-s610", false, "fe14a16d7c5c52cf56846d04305f994c"}, | 46 | { "nwz-s610", false, "fe14a16d7c5c52cf56846d04305f994c"}, |
47 | /* The following models use a different encryption, but we put the KAS here | 47 | /* The following models use a different encryption, but we put the KAS here |
48 | * to not forget them */ | 48 | * to not forget them */ |
49 | { "nw-a30", false, "c40d91e7efff3e3aa5c8831dd85526fe4972086283419c8cd8fa3b7dcd39" }, | 49 | { "nw-a30", false, "c40d91e7efff3e3aa5c8831dd85526fe4972086283419c8cd8fa3b7dcd39dee4" }, |
50 | { "nw-wm1", false, "e8d171a5d92f35eed9658c03fb9f86a169591659851fd7c49525f587a70b" }, | 50 | { "nw-wm1a", false, "e8d171a5d92f35eed9658c03fb9f86a169591659851fd7c49525f587a70b526c" }, |
51 | { "nw-wm1z", false, "2b07114f06d0f63b8ef8e31c8bc9332c7bd70281f7f8d2f80dab58cd36f82c82" }, | ||
51 | { "nw-zx300", false, "3ab5bbcb999463c50aaa957496b066c6b76a25f4505bf5b42c0bc4815cbe3db6" }, | 52 | { "nw-zx300", false, "3ab5bbcb999463c50aaa957496b066c6b76a25f4505bf5b42c0bc4815cbe3db6" }, |
52 | { "nw-nwa40", false, "a0d2b1317794074aff77dd2afb9c7aa6b28d6cf24a5e5eb60df87a87eb562de5" }, | 53 | { "nw-nwa40", false, "a0d2b1317794074aff77dd2afb9c7aa6b28d6cf24a5e5eb60df87a87eb562de5" }, |
53 | { 0 } | 54 | { 0 } |