Class CipherKeyGenerator

    • Field Detail

      • strength

        protected int strength
    • Constructor Detail

      • CipherKeyGenerator

        public CipherKeyGenerator()
    • Method Detail

      • init

        public void init​(KeyGenerationParameters param)
        initialise the key generator.
        Parameters:
        param - the parameters to be used for key generation
      • generateKey

        public byte[] generateKey()
        generate a secret key.
        Returns:
        a byte array containing the key value.