public static void ParseSalt(string salt, out byte[] saltBytes, out ulong N, out uint r, out uint p, out uint hashLengthBytes) { Exception error = SCryptAlgorithm.InternalTryParseSalt(salt, out saltBytes, out N, out r, out p, out hashLengthBytes); if (error != null) { throw error; } }
public static bool TryParseSalt(string salt, out byte[] saltBytes, out ulong N, out uint r, out uint p, out uint hashLengthBytes) { Exception error = SCryptAlgorithm.InternalTryParseSalt(salt, out saltBytes, out N, out r, out p, out hashLengthBytes); return(error == null); }