bump version to 1.2.1
All checks were successful
/ publish (push) Successful in 2m32s

This commit is contained in:
2025-11-10 16:10:59 +01:00
parent 0229457a20
commit cff4a4e7a4
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
group = "com.infendro"
version = "1.2.0"
version = "1.2.1"
repositories {
maven("https://git.infendro.com/api/packages/Infendro/maven")

View File

@@ -1,7 +1,7 @@
[versions]
kotlin = "2.1.20"
hash = "1.3.1"
bytearray = "1.2.0"
bytearray = "1.2.1"
[plugins]
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

View File

@@ -25,7 +25,7 @@ class HMAC(
key: UByteArray,
): UByteArray {
return when {
key.size > function.block -> function.hash(key)
key.size > function.block -> function.hash(key).padEnd(function.block, 0x00U)
key.size < function.block -> key.padEnd(function.block, 0x00U)
else -> key
}