Skip to content

Commit 9c86f2c

Browse files
nplastererBren2010
andauthored
Update library/src/main/java/org/xmtp/android/library/Crypto.kt
Co-authored-by: Brendan McMillion <brendanmcmillion@gmail.com>
1 parent 64b86b2 commit 9c86f2c

File tree

1 file changed

+2
-2
lines changed
  • library/src/main/java/org/xmtp/android/library

1 file changed

+2
-2
lines changed

library/src/main/java/org/xmtp/android/library/Crypto.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class Crypto {
103103
info: ByteArray,
104104
message: ByteArray,
105105
): ByteArray {
106-
val hkdfKey = deriveKey(secret, message, info)
107-
return calculateMac(secret, hkdfKey)
106+
val hkdfKey = deriveKey(secret, info)
107+
return calculateMac(hkdfKey, message)
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)