usnistgov / ACVP-Server

A repository tracking releases of NIST's ACVP server. See www.github.com/usnistgov/ACVP for the protocol.
51 stars 18 forks source link

RSA 56Br2 decryption primitive #310

Closed smuellerDD closed 8 months ago

smuellerDD commented 8 months ago

environment Demo

vsId 2082972

The test vector contains data that can be successfully decrypted, but the server expects a failure. Looking at the vector, it truly looks odd as you see below. But can you please refer to the particular requirement in the standard where such data is expected to be rejected?

"ct": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
...

Thanks a lot.

jbrock24 commented 8 months ago

This is something obtained from the RsaDpDisposition, which matches one of the failure conditions for the CT found in section 7.1.2 of the documentation.

If the ciphertext c does not satisfy 1 < c < (n – 1), output an indication that the ciphertext is out of range, and exit without further processing.

Hopefully this helps, please let me know if there's anything else I can help with.

smuellerDD commented 8 months ago

That helps, thanks a lot!