/** * initialise the key generator. * * @param param the parameters to be used for key generation */ public void Init( KeyGenerationParameters parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } this.uninitialised = false; engineInit(parameters); }
protected virtual void engineInit( KeyGenerationParameters parameters) { this.random = parameters.Random; this.strength = (parameters.Strength + 7) / 8; }