update dependencies

This commit is contained in:
2025-07-24 21:07:32 +02:00
parent f4385d172e
commit ba1c983094
5 changed files with 15 additions and 30 deletions

View File

@@ -1,10 +1,10 @@
package com.infendro.otp
import com.infendro.bytearray.toByteArray
import com.infendro.bytearray.toInt
import com.infendro.hash.HashFunction
import com.infendro.hash.SHA1
import com.infendro.mac.HMAC
import com.infendro.otp.util.toByteArray
import com.infendro.otp.util.toInt
import kotlin.experimental.and
import kotlin.math.pow
@@ -24,8 +24,7 @@ class HOTP(
secret: ByteArray,
counter: Long,
): String {
if (counter < 0)
throw Exception()
if (counter < 0) throw Exception()
val hash = generateHash(
secret,