Skip to content

Commit

Permalink
derive the hmac key correctl (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer authored Mar 6, 2024
1 parent 037b85b commit c67dfd2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ data class Conversations(
(thirtyDayPeriodsSinceEpoch - 1..thirtyDayPeriodsSinceEpoch + 1).forEach { value ->
val info = "$value-${client.address}"
val hmacKey =
Crypto.calculateMac(
Crypto.deriveKey(
conversation.keyMaterial!!,
ByteArray(0),
info.toByteStringUtf8().toByteArray()
)
val hmacKeyData = HmacKeyData.newBuilder()
Expand Down

0 comments on commit c67dfd2

Please sign in to comment.