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" group = "com.infendro"
version = "1.1.2" version = "1.2.1"
repositories { repositories {
maven("https://git.infendro.com/api/packages/Infendro/maven") maven("https://git.infendro.com/api/packages/Infendro/maven")

View File

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

View File

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