For details on the specification see: https://tools.ietf.org/html/rfc5649
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final BlockCipher | |
| private boolean | |
| private KeyParameter | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the wrapper implements. |
| public void | |
| private byte[] | Returns: The padded key.The key being wrapped. plaintext)Pads the plaintext (i.e., the key to be wrapped) as per section 4.1 of RFC 5649. |
| private byte[] | Returns: Unwrapped data.Performs steps 1 and 2 of the unwrap process defined in RFC 3394. |
| 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 | |
| param | back to summary |
|---|---|
| private KeyParameter param | |
| preIV | back to summary |
|---|---|
| private final byte[] preIV | |
| RFC5649WrapEngine | back to summary |
|---|---|
| public RFC5649WrapEngine(BlockCipher engine) | |
| 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. | |
| padPlaintext | back to summary |
|---|---|
| private byte[] padPlaintext(byte[] plaintext) Pads the plaintext (i.e., the key to be wrapped) as per section 4.1 of RFC 5649.
| |
| rfc3394UnwrapNoIvCheck | back to summary |
|---|---|
| private byte[] rfc3394UnwrapNoIvCheck(byte[] in, int inOff, int inLen, byte[] extractedAIV) Performs steps 1 and 2 of the unwrap process defined in RFC 3394. This code is duplicated from RFC3394WrapEngine because that class will throw an error during unwrap because the IV won't match up.
| |
| 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. | |