Skip to content

Commit

Permalink
chore: lint issues fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <ahmed.moussa@iohk.io>
  • Loading branch information
hamada147 committed Nov 8, 2023
1 parent 90d8692 commit f7c2c17
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import kotlin.test.assertEquals
* - https://github.com/xsc/pandect/blob/main/test/pandect/hmac_test.clj
*/
class HmacSHA512Tests : BaseHmacHashTests() {

override fun hash(key: ByteArray, stringToHash: ByteArray, outputLength: Int?): String {
val hash = SHA512().createHmac(key, outputLength)
return hash.digest(stringToHash).toHexString()
Expand Down Expand Up @@ -378,9 +377,10 @@ class HmacSHA512Tests : BaseHmacHashTests() {
"6e6a3cde12f2cb3a42ec8a5d21b435c4da4df6ca7e41537d361d8169158287bf1d2241581de07f88fe92f5ae4e96eb9c489fc3b258ea3842ea2d511ce883883e"
)

var key = ByteArray(64) {
it.toByte()
}
var key =
ByteArray(64) {
it.toByte()
}

expectedOutput.forEachIndexed { index, output ->
assertEquals(output, hash(key, ByteArray(index) { it.toByte() }))
Expand Down

0 comments on commit f7c2c17

Please sign in to comment.