I'm new to swift and i need to convert a hex string in swift to a CString to use in argon2 binding in c.
I have seen:
let saltCString = context.salt.cString(using: .utf8)
argon2id_hash_raw(UInt32(context.iterations), UInt32(context.memory), UInt32(context.parallelism), passwordCString,
passwordLength, saltCString, saltLength, &hashResult, hashLength)
But I want to pass a key instead of passpharse, does it work if I pass a salt of hex string and change .utf8 to .hex?