For further details see: https://www.ietf.org/rfc/rfc3394.txt and https://csrc.nist.gov/encryption/kms/key-wrap.pdf.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final BlockCipher | |
| private boolean | |
| private final byte[] | |
| private KeyParameter | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | RFC3394WrapEngine(BlockCipher
the block cipher to be used for wrapping. engine)Create a RFC 3394 WrapEngine specifying the encrypt for wrapping, decrypt for unwrapping. |
| public | RFC3394WrapEngine(BlockCipher
the block cipher to be used for wrapping. engine, boolean true if engine should be used in decryption mode for wrapping, false otherwise. useReverseDirection)Create a RFC 3394 WrapEngine specifying the direction for wrapping and unwrapping.. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. |
| public void | |
| public byte[] | |
| public byte[] |
| DEFAULT_IV | back to summary |
|---|---|
| private static final byte[] DEFAULT_IV | |
| engine | back to summary |
|---|---|
| private final BlockCipher engine | |
| forWrapping | back to summary |
|---|---|
| private boolean forWrapping | |
| iv | back to summary |
|---|---|
| private final byte[] iv | |
| param | back to summary |
|---|---|
| private KeyParameter param | |
| wrapCipherMode | back to summary |
|---|---|
| private final boolean wrapCipherMode | |
| RFC3394WrapEngine | back to summary |
|---|---|
| public RFC3394WrapEngine(BlockCipher engine) Create a RFC 3394 WrapEngine specifying the encrypt for wrapping, decrypt for unwrapping.
| |
| RFC3394WrapEngine | back to summary |
|---|---|
| public RFC3394WrapEngine(BlockCipher engine, boolean useReverseDirection) Create a RFC 3394 WrapEngine specifying the direction for wrapping and unwrapping..
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the wrapper implements.
| |
| init | back to summary |
|---|---|
| public void init(boolean forWrapping, CipherParameters param) Implements org. | |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException Implements org. | |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] in, int inOff, int inLen) Implements org. | |