Class RC5KeyParameters
- java.lang.Object
-
- org.xwiki.crypto.params.cipher.symmetric.KeyParameter
-
- org.xwiki.crypto.params.cipher.symmetric.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 Summary
Constructors Constructor Description RC5KeyParameters(byte[] key)Initialize parameters with a default number of rounds set to 12.RC5KeyParameters(byte[] key, int rounds)Initialize parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRounds()-
Methods inherited from class org.xwiki.crypto.params.cipher.symmetric.KeyParameter
getKey
-
-
-
-
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.
-
-