[Gnuk-users] Gnuk 1.2.3: keys for firmware upgrades

NIIBE Yutaka gniibe at fsij.org
Mon May 1 00:22:40 UTC 2017


Ineiev <ineiev at gnu.org> wrote:
> With FST-01, I try to extract a key for firmware updates as
> documented in doc/note/firmware-update, but the script gets
> 257 bytes of key data rather than 256 (for any of 3 keys).
>
> Is there something wrong about my keys?

You changed the script to change the parsing, then you got:

> $ ./get-raw-key.py 6864BCD8D33D63FC1DA94EE67EDE26EBB1ED248F
> len(key) = 257
> Traceback (most recent call last):
>   File "./get-raw-key.py", line 28, in <module>
>     k = get_gpg_public_key(keygrip)
>   File "./get-raw-key.py", line 23, in get_gpg_public_key
>     raise ValueError, binascii.hexlify(key)
> ValueError: b7cd6782738f282059a248015c4c136aa126ba0f91db90fa5c5192cd1263d1e3ac5b3747550e228e802969d1e371f8c91f3463ec973abca8030a045014da01e9b52c6e4a939230af6ae44c0ad0e4eaa3dde48a2a0caf72036d6767a783bc8ea709edd37ffb1c8203655f17cf0f635ea4fc717d15b82cbd5cc69ac6dec1fe2e4fe29333e3591dd6d7fff8787da52162a9ccfd23a94c92ac3ca48663460b9bb05cecd22df66e8571eb4408e8903688f73e89bb4236b740a765586bde1e062c5f5d4d7b02da18be0764b74c11ded95373356bd4e938ce8c4e46e505c26bb66d6be32a5f0135a8d3ccf71edbbf1fdad4bd86c93e1d805601d98a81daf2ec3eee091f29

... data with ')' = 0x29 at the end.  SEXP uses parens '(' and ')' and
it is not the part of binary data which represents the public key.

I mean, it's not the key which is wrong, but it is the code
handling that.
-- 



More information about the gnuk-users mailing list