|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.crypto.spec.IvParameterSpec
org.bouncycastle.jcajce.spec.AEADParameterSpec
ParameterSpec for AEAD modes which allows associated data to be added via an algorithm parameter spec.In normal circumstances you would only want to use this if you had to work with the pre-JDK1.7 Cipher class as associated data is ignored for the purposes of returning a Cipher's parameters.
Constructor Summary | |
AEADParameterSpec(byte[] nonce,
int macSizeInBits)
Base constructor. |
|
AEADParameterSpec(byte[] nonce,
int macSizeInBits,
byte[] associatedData)
Base constructor with prepended associated data. |
Method Summary | |
byte[] |
getAssociatedData()
Return the associated data associated with this parameter spec. |
int |
getMacSizeInBits()
Return the size of the MAC associated with this parameter spec. |
byte[] |
getNonce()
Return the nonce (same as IV) associated with this parameter spec. |
Methods inherited from class javax.crypto.spec.IvParameterSpec |
getIV |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AEADParameterSpec(byte[] nonce, int macSizeInBits)
nonce
- nonce/iv to be usedmacSizeInBits
- macSize in bitspublic AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData)
nonce
- nonce/iv to be usedmacSizeInBits
- macSize in bitsassociatedData
- associated data to be prepended to the cipher stream.Method Detail |
public int getMacSizeInBits()
public byte[] getAssociatedData()
public byte[] getNonce()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |