public final void init ( int opmode , Key key , SecureRandom random ) throws InvalidKeyException { initialized = false ; checkOpmode ( opmode ) ; try { chooseProvider ( InitType . KEY , opmode , key , null , null , random ) ; } catch ( InvalidAlgorithmParameterException e ) { // should never occur throw new InvalidKeyException ( e ) ; } initialized = true ; this . opmode = opmode ; }
Initializes this cipher with a key and a source of randomness .