update README

This commit is contained in:
2025-12-13 23:01:04 +01:00
parent f147058b6c
commit 8065f15e3f
2 changed files with 21 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
package com.infendro.mac
import com.infendro.bytearray.encodeToUByteArray
import com.infendro.hash.sha2.`SHA-256`
import kotlin.test.Test
import kotlin.test.assertContentEquals
@@ -28,8 +29,8 @@ class `HMAC Test` {
0x2dU, 0x1aU, 0x3cU, 0xd8U,
),
hmac.hash(
"key".encodeToByteArray().asUByteArray(),
"The quick brown fox jumps over the lazy dog".encodeToByteArray().asUByteArray()
"key".encodeToUByteArray(),
"The quick brown fox jumps over the lazy dog".encodeToUByteArray()
)
)
}