Skip to content

Commit 0b34604

Browse files
committed
Use 'sha-1' algorithm instead of 'sha'.
1 parent d2ab6fc commit 0b34604

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)