Compare commits

...

2 Commits

Author SHA1 Message Date
1d0a60bb12 bump version to 1.0.3
All checks were successful
/ publish (push) Successful in 2m38s
2025-08-17 15:29:19 +02:00
e15d4e6414 fix PBKDF2 2025-08-17 15:29:00 +02:00
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -7,7 +7,7 @@ import com.infendro.hash.HashFunction
import com.infendro.mac.HMAC
class PBKDF2(
function: HashFunction,
private val function: HashFunction,
) {
private val hmac = HMAC(function)
@@ -18,7 +18,7 @@ class PBKDF2(
length: Int,
): ByteArray {
val key = buildList {
for (i in 1..(length + size - 1) / size) {
for (i in 1..(length + function.bytes - 1) / function.bytes) {
val input = salt + i.toUInt().toByteArray()
var u = hmac.hash(value, input)