optimize nextBytes()
This commit is contained in:
@@ -35,7 +35,6 @@ class HMAC internal constructor(
|
||||
val bytes = buildList {
|
||||
while (size < count) {
|
||||
v = hmac.hash(k, v)
|
||||
|
||||
addAll(v.take(min(count - size, function.bytes)))
|
||||
}
|
||||
}.toUByteArray()
|
||||
|
||||
Reference in New Issue
Block a user