SCryptGenerate Method
Generate a key using the scrypt key derivation function.
Namespace: Org.BouncyCastle.Crypto.GeneratorsAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
Org.BouncyCastle.Crypto.Generators.SCrypt.Generate = function(P, S, N, r, p, dkLen);
- P Byte
- the bytes of the pass phrase.
- S Byte
- the salt to use for this invocation.
- N Int32
- CPU/Memory cost parameter. Must be larger than 1, a power of 2 and less than
.
- r Int32
- the block size, must be >= 1.
- p Int32
- Parallelization parameter. Must be a positive integer less than or equal to
int.MaxValue / (128 * r * 8)
. - dkLen Int32
- the length of the key to generate.
Bytethe generated key.