Skip to content

Commit c6e0368

Browse files
authored
fix: swap memcopy param order (#27)
1 parent bce9dfe commit c6e0368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/naxolotl/utils.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func hkdfSplit*(salt: GenericArray, ikm: GenericArray, info: openArray[byte] ) :
3636
var out2 : array[KeyLen, byte]
3737

3838
# Unsafe memcopy
39-
copyMem(addr output[0], unsafeAddr out1[0], KeyLen)
40-
copyMem(addr output[32], unsafeAddr out2[0], KeyLen)
39+
copyMem(addr out1[0], addr output[0], KeyLen)
40+
copyMem(addr out2[0], addr output[32], KeyLen)
4141

4242
result = (out1,out2)
4343

0 commit comments

Comments
 (0)