7172737475767778798081
protected SecretKey engineGenerateKey() { if (uninitialised) { engine.init(new KeyGenerationParameters( new SecureRandom(), defaultKeySize)); } return (SecretKey)(new SecretKeySpec(engine.generateKey(), algName)); }
123124125126127128129130131132133
protected SecretKey engineGenerateKey() { if (uninitialised) { engine.init(new KeyGenerationParameters( new SecureRandom(), defaultKeySize)); } // // if no key size has been defined generate a 24 byte key in
171172173174175176177178179180181
4647484950515253
{ if (random != null) { uninitialised = false; engine.init(new KeyGenerationParameters(random, defaultKeySize)); } }
5859606162636465666768
{ uninitialised = false; try { engine.init(new KeyGenerationParameters(random, keySize)); } catch (IllegalArgumentException e) { throw new InvalidParameterException(e.getMessage()); }
7071727374757677787980
122123124125126127128129130131132
170171172173174175176177178179180