The regression test SignatureLength.java was seen to fail on some
This is because signature verifier from SunPKCS11-Solaris provider
doesn't always throw SignatureException when the signature is of wrong
length, but can simply return false to indicate it is invalid.
The test was also modified to try different combinations of providers
used to create key-pair generator, signer and verifier.
The fixed test passes well on all platforms with JDK 11 and JDK 8u.
Would you please help review it?
Thanks in advance!
With kind regards,