org.jboss.aerogear.crypto
Class BlockCipher
java.lang.Object
org.jboss.aerogear.crypto.BlockCipher
public class BlockCipher
- extends Object
Representation of the cipher modes supported
|
Method Summary |
static org.bouncycastle.crypto.modes.AEADBlockCipher |
getInstance()
|
static byte[] |
getIV()
Generates a non-predictable initialization vector |
static org.bouncycastle.crypto.modes.AEADBlockCipher |
getNewCipher(BlockCipher.Mode blockMode)
Retrieve a new instance of the block mode provided |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockCipher
private BlockCipher()
getInstance
public static org.bouncycastle.crypto.modes.AEADBlockCipher getInstance()
getNewCipher
public static org.bouncycastle.crypto.modes.AEADBlockCipher getNewCipher(BlockCipher.Mode blockMode)
- Retrieve a new instance of the block mode provided
- Parameters:
blockMode - block mode name
- Returns:
- instance to the block mode
getIV
public static byte[] getIV()
- Generates a non-predictable initialization vector
- Returns:
- byte array with the initialization vector generated
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.