fix: swap memcopy param order

This commit is contained in:
Jazz Turner-Baggs 2025-11-27 11:00:43 -08:00
parent bce9dfe8f4
commit 995f42d976
No known key found for this signature in database

View File

@ -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)