Compare commits

...

2 Commits

Author SHA1 Message Date
cff4a4e7a4 bump version to 1.2.1
All checks were successful
/ publish (push) Successful in 2m32s
2025-11-10 16:10:59 +01:00
0229457a20 bump version to 1.2.0
All checks were successful
/ publish (push) Successful in 2m34s
2025-11-10 14:54:28 +01:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
group = "com.infendro"
version = "1.1.2"
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
}