File tree 1 file changed +7
-5
lines changed
src/java.base/share/classes/java/security
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1996, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1996, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -457,10 +457,12 @@ public String toString() {
457
457
* the same length and all bytes at corresponding positions are equal.
458
458
*
459
459
* @implNote
460
- * All bytes in {@code digesta} are examined to determine equality.
461
- * The calculation time depends only on the length of {@code digesta}.
462
- * It does not depend on the length of {@code digestb} or the contents
463
- * of {@code digesta} and {@code digestb}.
460
+ * All bytes in {@code digesta} are examined to determine equality, unless
461
+ * {@code digestb} is {@code null} or has a length of zero bytes. If
462
+ * {@code digestb} is not {@code null} and does not have a length of zero
463
+ * bytes, then the calculation time depends only on the length of
464
+ * {@code digesta}. It does not depend on the length of {@code digestb} or
465
+ * the contents of {@code digesta} and {@code digestb}.
464
466
*
465
467
* @param digesta one of the digests to compare.
466
468
*
You can’t perform that action at this time.
0 commit comments