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/scsitools/scsitool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/nwztools/scsitools/scsitool.c') diff --git a/utils/nwztools/scsitools/scsitool.c b/utils/nwztools/scsitools/scsitool.c index c4834b709a..4f7e6ad4b8 100644 --- a/utils/nwztools/scsitools/scsitool.c +++ b/utils/nwztools/scsitools/scsitool.c @@ -167,7 +167,7 @@ struct dnk_prop_t dnk_prop_list[] = { "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32}, { "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX}, { "ufn", "Update filename", 0x23, 21, 8, DNK_STRING}, - { "kas", "Key and Signature", 0x23, 22, 60, DNK_STRING}, + { "kas", "Key and Signature", 0x23, 22, 64, DNK_STRING}, { "devinfo", "Devide Info", 0x12, 0, 64, DNK_HEX}, /* there are more obscure commands: * - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled -- cgit v1.2.3