small refactor

This commit is contained in:
2025-08-03 00:22:16 +02:00
parent f6f9625cf2
commit 9480d02021

View File

@@ -37,11 +37,13 @@ class HMAC internal constructor(
V = hmac.hash(K, V)
addAll(V)
}
}.take(count).toByteArray()
}
K = hmac.hash(K, V + byteArrayOf(0x00))
V = hmac.hash(K, V)
return bytes
.take(count)
.toByteArray()
}
}