Class DESede.KeyGenerator

  • Enclosing class:
    DESede

    public static class DESede.KeyGenerator
    extends BaseKeyGenerator
    DESede - the default for this is to generate a key in a-b-a format that's 24 bytes long but has 16 bytes of key material (the first 8 bytes is repeated as the last 8 bytes). If you give it a size, you'll get just what you asked for.
    • Constructor Detail

      • KeyGenerator

        public KeyGenerator()
    • Method Detail

      • engineInit

        protected void engineInit​(int keySize,
                                  SecureRandom random)
        Description copied from class: KeyGeneratorSpi
        Initializes this KeyGenerator instance for the specified key size (in bits) using the specified randomness source.
        Overrides:
        engineInit in class BaseKeyGenerator
        Parameters:
        keySize - the size of the key (in bits).
        random - the randomness source for any random bytes.