mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8209851: Algorithm name is compared via reference identity
Reviewed-by: mullan
This commit is contained in:
parent
c3adb5f87d
commit
acaf155de7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue