8205445: Add RSASSA-PSS Signature support to SunMSCAPI

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2018-06-22 21:42:00 +08:00
parent 5f55147841
commit 578576f523
7 changed files with 731 additions and 9 deletions

View file

@ -132,7 +132,7 @@ public class RSAPSSSignature extends SignatureSpi {
}
this.pubKey = (RSAPublicKey) isValid((RSAKey)publicKey);
this.privKey = null;
resetDigest();
}
// initialize for signing. See JCA doc
@ -153,6 +153,7 @@ public class RSAPSSSignature extends SignatureSpi {
this.pubKey = null;
this.random =
(random == null? JCAUtil.getSecureRandom() : random);
resetDigest();
}
/**