From 76fbb33adf3cd0b6bcbe26dc47464904493160bd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 13 Jun 2020 16:15:34 +0200 Subject: 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 --- utils/nwztools/upgtools/upg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/nwztools/upgtools/upg.c') 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[] = { "nwz-s610", false, "fe14a16d7c5c52cf56846d04305f994c"}, /* The following models use a different encryption, but we put the KAS here * to not forget them */ - { "nw-a30", false, "c40d91e7efff3e3aa5c8831dd85526fe4972086283419c8cd8fa3b7dcd39" }, - { "nw-wm1", false, "e8d171a5d92f35eed9658c03fb9f86a169591659851fd7c49525f587a70b" }, + { "nw-a30", false, "c40d91e7efff3e3aa5c8831dd85526fe4972086283419c8cd8fa3b7dcd39dee4" }, + { "nw-wm1a", false, "e8d171a5d92f35eed9658c03fb9f86a169591659851fd7c49525f587a70b526c" }, + { "nw-wm1z", false, "2b07114f06d0f63b8ef8e31c8bc9332c7bd70281f7f8d2f80dab58cd36f82c82" }, { "nw-zx300", false, "3ab5bbcb999463c50aaa957496b066c6b76a25f4505bf5b42c0bc4815cbe3db6" }, { "nw-nwa40", false, "a0d2b1317794074aff77dd2afb9c7aa6b28d6cf24a5e5eb60df87a87eb562de5" }, { 0 } -- cgit v1.2.3