Skip to content

Commit c6ec89e

Browse files
committed
Fix Openssl3 HMAC impl
1 parent 96f1ccc commit c6ec89e

File tree

1 file changed

+1
-1
lines changed
  • cryptography-providers/openssl3/api/src/commonMain/kotlin/algorithms

1 file changed

+1
-1
lines changed

cryptography-providers/openssl3/api/src/commonMain/kotlin/algorithms/Openssl3Hmac.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private class HmacSignature(
101101

102102
@OptIn(UnsafeNumber::class)
103103
override fun update(source: ByteArray, startIndex: Int, endIndex: Int) {
104-
checkBounds(source.size, startIndex, endIndex - startIndex)
104+
checkBounds(source.size, startIndex, endIndex)
105105
val context = context.access()
106106

107107
source.usePinned {

0 commit comments

Comments
 (0)