update README
This commit is contained in:
@@ -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()
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user