Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/naxolotl/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func hkdfSplit*(salt: GenericArray, ikm: GenericArray, info: openArray[byte] ) :
var out2 : array[KeyLen, byte]

# Unsafe memcopy
copyMem(addr output[0], unsafeAddr out1[0], KeyLen)
copyMem(addr output[32], unsafeAddr out2[0], KeyLen)
copyMem(addr out1[0], addr output[0], KeyLen)
copyMem(addr out2[0], addr output[32], KeyLen)

result = (out1,out2)

Expand Down