Class RC2KeyParameters

  • All Implemented Interfaces:
    CipherParameters, SymmetricCipherParameters

    public class RC2KeyParameters
    extends KeyParameter
    Derived version of key parameters to specify effective key bits of RC2.
    Since:
    5.4M1
    Version:
    $Id: e3e739671907d87d2d6781192983e4137983b259 $
    • Constructor Detail

      • RC2KeyParameters

        public RC2KeyParameters​(byte[] key)
        Initialize parameters.
        Parameters:
        key - the key, all bits are considered effective.
      • RC2KeyParameters

        public RC2KeyParameters​(byte[] key,
                                int bits)
        Initialize parameters.
        Parameters:
        key - the key.
        bits - the number of effective bits in the key.
    • Method Detail

      • getEffectiveBits

        public int getEffectiveBits()
        Returns:
        the number of effective bits that should be used for the key.