public ScryptResult(int iterationCount, int blockSize, int threadCount, byte[] salt, byte[] hash) { IterationCount = iterationCount; BlockSize = blockSize; ThreadCount = threadCount; Salt = salt; Hash = hash; Input = new ScryptInput(iterationCount, blockSize, threadCount, salt); }
public static ScryptResult Encode(byte[] password, ScryptInput input) { return(Encode(password, input.IterationCount, input.BlockSize, input.ThreadCount, input.Salt)); }