update dependencies
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user