-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Several vendors are distributing CoRIM manifest files which have ASN header bytes:
00000000 d9 01 f4 d9 01 f6 d2 84 58 29 a3 01 38 22 03 74 |........X)..8".t|
00000010 61 70 70 6c 69 63 61 74 69 6f 6e 2f 72 69 6d 2b |application/rim+|
00000020 63 62 6f 72 08 4d a1 00 a1 00 68 53 6f 6c 69 64 |cbor.M....hSolid|
When feeding these files into cocli corim, an error is printed:
% cocli corim display -f PS10xx-G75YG100-E3S-16TB.cbor
Error: error decoding signed CoRIM from PS10xx-G75YG100-E3S-16TB.cbor: failed CBOR decoding for COSE-Sign1 signed CoRIM: cbor: invalid COSE_Sign1_Tagged object
This requires applications to manually strip the first 6 bytes before feeding the file into cocli.
Enhancement request: automatically skip and discard the first 6 bytes if the ASN pattern d9 01 f4 d9 01 f6 is detected.
Metadata
Metadata
Assignees
Labels
No labels