-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance cocli corim command to skip over ASN header bytes #23
Comments
Hi @lordaule, could you please check whether veraison/corim#133 fixes your concern? cc @deeglaze |
% go install github.com/veraison/cocli@latest % cocli corim display -f PS10xx-G75YG100-E3S-16TB.cbor Looks like the error message slightly changed but it still doesn't work. If I manually strip off the first 6 bytes it works. |
To test with the latest corim package you'll need to do something like:
git checkout main
git pull
go get github.com/veraison/corim@b690f86125b4c27c8c8451f8e8f2ea64db5ff2c2
go mod tidy
make test
go build -o cocli
./cocli corim display -f PS10xx-G75YG100-E3S-16TB.cbor |
I have been unsuccessful in building my own version, so instead I'm going to point at a failing file:
It looks like there's code in corim/corim/signedcorim.go to remove the tags:
It appears that either go install github.com/veraison/cocli@latest is not including that fix, or that code isn't actually working. |
Several vendors are distributing CoRIM manifest files which have ASN header bytes:
When feeding these files into cocli corim, an error is printed:
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.
The text was updated successfully, but these errors were encountered: