Adding test with RSA-PSS test vectors where signature hash, mgf hash and
salt length do not match. Applications typically used RSA-PSS such that signature hash and mgf hash are the same and the salt length is either 0 or the size of the hash. RFC 8017 allows other combinations. These test check that such combinations are either rejected or are implemented correctly. The test file contains just one valid signature for each combination of mgf-hash signature-hash, salt length that is tested. Results: BoringSSL accepts all signatures. BouncyCastle rejects signatures where mgf and signature hash do not match. Conscrypt rejects signatures where mgf and signature hash do not match. Jdk (i.e. the version we have in google3) does not implement RSA-PSS yet. PiperOrigin-RevId: 206761543 GitOrigin-RevId: f5cffdf23fc04cc0b15925c34c0cb74dfda51737
This commit is contained in:
committed by
quannguyentm
parent
4d6cead1bb
commit
f89f4c53a8