Class KeyWithIVParameters

    • Constructor Detail

      • KeyWithIVParameters

        public KeyWithIVParameters​(byte[] key,
                                   int ivSize)
        Initialize parameters with a random initialization vector.
        Parameters:
        key - the key.
        ivSize - the size of the initialization vector.
      • KeyWithIVParameters

        public KeyWithIVParameters​(byte[] key,
                                   byte[] iv)
        Initialize parameters.
        Parameters:
        key - the key.
        iv - the initialization vector.
      • KeyWithIVParameters

        public KeyWithIVParameters​(byte[] key,
                                   int ivSize,
                                   SecureRandom random)
        Initialize parameters.
        Parameters:
        key - the key.
        ivSize - the size of the initialization vector to randomize.
        random - the random source.
      • KeyWithIVParameters

        public KeyWithIVParameters​(KeyParameter key,
                                   int ivSize)
        Initialize parameters.
        Parameters:
        key - the key.
        ivSize - the size of the initialization vector to randomize using a new default SecureRandom.
      • KeyWithIVParameters

        public KeyWithIVParameters​(KeyParameter key,
                                   int ivSize,
                                   SecureRandom random)
        Initialize parameters.
        Parameters:
        key - the key.
        ivSize - the size of the initialization vector to randomize.
        random - the random source.
      • KeyWithIVParameters

        public KeyWithIVParameters​(KeyParameter key,
                                   byte[] iv)
        Initialize parameters.
        Parameters:
        key - the key.
        iv - the initialization vector.
    • Method Detail

      • getKeyParameter

        public KeyParameter getKeyParameter()
        Returns:
        the initialization vector.
      • getKey

        public byte[] getKey()
        Returns:
        the key.
      • getIV

        public byte[] getIV()
        Returns:
        the initialization vector.