8209851: Algorithm name is compared via reference identity
Reviewed-by: mullan
This commit is contained in:
parent
c3adb5f87d
commit
acaf155de7
@ -152,7 +152,7 @@ abstract class DSA extends SignatureSpi {
|
||||
|
||||
// check key size against hash output size for signing
|
||||
// skip this check for verification to minimize impact on existing apps
|
||||
if (md.getAlgorithm() != "NullDigest20") {
|
||||
if (!"NullDigest20".equals(md.getAlgorithm())) {
|
||||
checkKey(params, md.getDigestLength()*8, md.getAlgorithm());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user