|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.engines.RFC3394WrapEngine
an implementation of the AES Key Wrapper from the NIST Key Wrap Specification as described in RFC 3394.
For further details see: https://www.ietf.org/rfc/rfc3394.txt and https://csrc.nist.gov/encryption/kms/key-wrap.pdf.
Constructor Summary | |
RFC3394WrapEngine(BlockCipher engine)
Create a RFC 3394 WrapEngine specifying the encrypt for wrapping, decrypt for unwrapping. |
|
RFC3394WrapEngine(BlockCipher engine,
boolean useReverseDirection)
Create a RFC 3394 WrapEngine specifying the direction for wrapping and unwrapping.. |
Method Summary | |
java.lang.String |
getAlgorithmName()
Return the name of the algorithm the wrapper implements. |
void |
init(boolean forWrapping,
CipherParameters param)
|
byte[] |
unwrap(byte[] in,
int inOff,
int inLen)
|
byte[] |
wrap(byte[] in,
int inOff,
int inLen)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RFC3394WrapEngine(BlockCipher engine)
engine
- the block cipher to be used for wrapping.public RFC3394WrapEngine(BlockCipher engine, boolean useReverseDirection)
engine
- the block cipher to be used for wrapping.useReverseDirection
- true if engine should be used in decryption mode for wrapping, false otherwise.Method Detail |
public void init(boolean forWrapping, CipherParameters param)
init
in interface Wrapper
public java.lang.String getAlgorithmName()
Wrapper
getAlgorithmName
in interface Wrapper
public byte[] wrap(byte[] in, int inOff, int inLen)
wrap
in interface Wrapper
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
unwrap
in interface Wrapper
InvalidCipherTextException
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |