Class RC5KeyParameters

  • All Implemented Interfaces:
    CipherParameters, SymmetricCipherParameters

    public class RC5KeyParameters
    extends KeyParameter
    Derived version of key parameters to specify rounds of RC5. WARNING: RSA Security own the US Patent US5724428 A on this algorithm. Therefore, before expiration of this patent, which will happen in november 2015, the usage of this algorithm is subject to restricted usage on the US territories. RC5 is a registered trademark of RSA Security.
    Since:
    5.4M1
    Version:
    $Id: 804c41d37459a537ec763a144edca8b0384b1be8 $
    • Constructor Detail

      • RC5KeyParameters

        public RC5KeyParameters​(byte[] key)
        Initialize parameters with a default number of rounds set to 12.
        Parameters:
        key - the key.
      • RC5KeyParameters

        public RC5KeyParameters​(byte[] key,
                                int rounds)
        Initialize parameters.
        Parameters:
        key - the key.
        rounds - the number of "rounds" in the encryption operation between 8 and 127.
    • Method Detail

      • getRounds

        public int getRounds()
        Returns:
        the number of "rounds" in the encryption operation between 8 and 127.