Skip to content

Commit

Permalink
fix: CodecText.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
kele-leanes committed Feb 28, 2024
1 parent ab45a82 commit 561bab0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ class CodecTest {

val keyMaterial = conversation.keyMaterial
val info = "$thirtyDayPeriodsSinceEpoch-${alixClient.address}"
val hmac = Crypto.calculateMac(
Crypto.deriveKey(keyMaterial!!, ByteArray(0), info.toByteArray()),
headerBytes
)
val key = Crypto.deriveKey(keyMaterial!!, ByteArray(0), info.toByteArray())
val hmac = Crypto.calculateMac(key, headerBytes)

topicHmacs[topic] = hmac
}
Expand Down

0 comments on commit 561bab0

Please sign in to comment.