org.silverpeas.util.crypto
Class CAST5Cipher

java.lang.Object
  extended by org.silverpeas.util.crypto.BlockCipherWithPadding
      extended by org.silverpeas.util.crypto.CAST5Cipher
All Implemented Interfaces:
Cipher

public class CAST5Cipher
extends BlockCipherWithPadding

CAST-128 (alternatively CAST5) is a block cipher created in 1996 by Carlisle Adams and Stafford Tavares. It is a 12- or 16-round Feistel network with a 64-bit block size and a key size of between 40 to 128 bits (but only in 8-bit increments). The full 16 rounds are used when the key size is longer than 80 bits. All the algorithms herein are from the Internet RFC's RFC2144 - CAST5 (64bit block, 40-128bit key).


Constructor Summary
CAST5Cipher()
           
 
Method Summary
 CryptographicAlgorithmName getAlgorithmName()
          Gets the name of the algorithm of the cipher.
 
Methods inherited from class org.silverpeas.util.crypto.BlockCipherWithPadding
combineEncryptionData, decrypt, encrypt, extractEncryptionData, generateCipherKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAST5Cipher

public CAST5Cipher()
Method Detail

getAlgorithmName

public CryptographicAlgorithmName getAlgorithmName()
Gets the name of the algorithm of the cipher.

Specified by:
getAlgorithmName in interface Cipher
Specified by:
getAlgorithmName in class BlockCipherWithPadding
Returns:
the algorithm name.


Copyright © 2016 Silverpeas. All Rights Reserved.