fix: swap memcopy param order (#27)

This commit is contained in:
Jazz Turner-Baggs 2025-11-27 17:24:03 -08:00 committed by GitHub
parent bce9dfe8f4
commit c6e03686fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)