small refactor
This commit is contained in:
@@ -37,11 +37,13 @@ class HMAC internal constructor(
|
|||||||
V = hmac.hash(K, V)
|
V = hmac.hash(K, V)
|
||||||
addAll(V)
|
addAll(V)
|
||||||
}
|
}
|
||||||
}.take(count).toByteArray()
|
}
|
||||||
|
|
||||||
K = hmac.hash(K, V + byteArrayOf(0x00))
|
K = hmac.hash(K, V + byteArrayOf(0x00))
|
||||||
V = hmac.hash(K, V)
|
V = hmac.hash(K, V)
|
||||||
|
|
||||||
return bytes
|
return bytes
|
||||||
|
.take(count)
|
||||||
|
.toByteArray()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user