PBKDF2.this

this(MACFactory prfFactory, size_t iterations)

Constructs a PBKDF2 instance.

Parameters

prfFactoryA delegate that creates a MAC instance (PRF) for a given key. Example: (key) => new HMAC(new SHA1Digest(), key)
iterationsThe number of iterations to perform. Must be at least 1 (RFC 2898 section 5.2, step 1).

Throws

CryptoException if iterations is zero.