Computes a derived key.
            
Namespace: CryptSharp.UtilityAssembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax
Parameters
- key
- Type:   System Byte System Byte
 The key to derive from.
- salt
- Type:   System Byte System Byte
 The salt. A unique salt means a unique SCrypt stream, even if the original key is identical.
- cost
- Type:  System Int32 System Int32
 The cost parameter, typically a fairly large number such as 262144. Memory usage and CPU time scale approximately linearly with this parameter.
- blockSize
- Type:  System Int32 System Int32
 The mixing block size, typically 8. Memory usage and CPU time scale approximately linearly with this parameter.
- parallel
- Type:  System Int32 System Int32
 The level of parallelism, typically 1. CPU time scales approximately linearly with this parameter.
- maxThreads
- Type:  System Nullable System Nullable Int32 Int32
 The maximum number of threads to spawn to derive the key. This is limited by the parallel value. null will use as many threads as possible.
- derivedKeyLength
- Type:  System Int32 System Int32
 The desired length of the derived key.
Return Value
The derived key.See Also