Skip to content

Commit 2b8a847

Browse files
Update utils/src/main/java/org/apache/cloudstack/utils/security/DigestHelper.java
1 parent 4f08312 commit 2b8a847

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/src/main/java/org/apache/cloudstack/utils/security/DigestHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public static String prependAlgorithm(String checksum) {
148148
return checksum;
149149
}
150150
int checksumLength = checksum.length();
151+
Map<String, Integer> paddingLengths = getChecksumLengthsMap();
151152
for (Map.Entry<String, Integer> entry : paddingLengths.entrySet()) {
152153
if (entry.getValue().equals(checksumLength)) {
153154
String algorithm = entry.getKey();

0 commit comments

Comments
 (0)