8293815: P11PSSSignature.engineUpdate should not print debug messages during normal operation

Reviewed-by: valeriep
This commit is contained in:
Zdenek Zambersky 2022-09-15 01:06:08 +00:00 committed by Valerie Peng
parent 7376c55219
commit 2057070eb0

View File

@ -576,10 +576,10 @@ final class P11PSSSignature extends SignatureSpi {
case T_UPDATE:
try {
if (mode == M_SIGN) {
System.out.println(this + ": Calling C_SignUpdate");
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
token.p11.C_SignUpdate(session.id(), 0, b, ofs, len);
} else {
System.out.println(this + ": Calling C_VerfifyUpdate");
if (DEBUG) System.out.println(this + ": Calling C_VerfifyUpdate");
token.p11.C_VerifyUpdate(session.id(), 0, b, ofs, len);
}
bytesProcessed += len;
@ -625,11 +625,11 @@ final class P11PSSSignature extends SignatureSpi {
int ofs = byteBuffer.position();
try {
if (mode == M_SIGN) {
System.out.println(this + ": Calling C_SignUpdate");
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
token.p11.C_SignUpdate
(session.id(), addr + ofs, null, 0, len);
} else {
System.out.println(this + ": Calling C_VerifyUpdate");
if (DEBUG) System.out.println(this + ": Calling C_VerifyUpdate");
token.p11.C_VerifyUpdate
(session.id(), addr + ofs, null, 0, len);
}