Skip to content

Commit d4c2464

Browse files
committed
Merge branch '318032-use-more-specific-sha-version' into 'master'
Use 'sha-1' algorithm instead of 'sha'. Closes #318032 See merge request asm/asm!429
2 parents d2ab6fc + 0b34604 commit d4c2464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asm-commons/src/main/java/org/objectweb/asm/commons/SerialVersionUIDAdder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ protected long computeSVUID() throws IOException {
423423
// DontCheck(AbbreviationAsWordInName): can't be renamed (for backward binary compatibility).
424424
protected byte[] computeSHAdigest(final byte[] value) {
425425
try {
426-
return MessageDigest.getInstance("SHA").digest(value);
426+
return MessageDigest.getInstance("SHA-1").digest(value);
427427
} catch (NoSuchAlgorithmException e) {
428428
throw new UnsupportedOperationException(e);
429429
}

0 commit comments

Comments
 (0)