Skip to content
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

Does OPTEE support NIST ECDSA P521 Testvector verification? #7100

Open
sungkeunsong opened this issue Nov 1, 2024 · 2 comments
Open

Does OPTEE support NIST ECDSA P521 Testvector verification? #7100

sungkeunsong opened this issue Nov 1, 2024 · 2 comments

Comments

@sungkeunsong
Copy link

Dear all,

I am verifying ECDSA verification using SigVer.rsp, NIST test vectors.
https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/dss/186-4ecdsatestvectors.zip
All testvectors passed up to P384 but P521 testvectors are encountering verification failures.
R, S of P521 testvectors is 131 hex digit, respectively. So signature size is 131 bytes.
I got TEE panic (0xffff0006).
so I tried adding a 1-byte 0x00 at the beginning or end to adjust the certificate size to 132 bytes.
All test vectors that should pass verification are failing.
Let me know if OPTEE support NIST ECDSA P521 Testvector verification
I'm using OPTEE version 3.11

Thank you

@jenswi-linaro
Copy link
Contributor

We have some tests based on https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/dss/186-2ecdsatestvectors.zip
Do you know what's different with the newer file?

@sungkeunsong
Copy link
Author

testvectors for SHA-2(SHA-224, SHA-256, SHA-384, SHA-512) are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants