Note
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| private CBCBlockCipher | engine
Field engine |
| private boolean | forWrapping
Field forWrapping |
| private byte[] | iv
Field iv |
| private static final byte[] | IV2
Field IV2 |
| private KeyParameter | param
Field param |
| private ParametersWithIV | paramPlusIV
Field paramPlusIV |
| pack-priv Digest |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | Returns: the CMS checksum.the key to check, key)Some key wrap algorithms make use of the Key Checksum defined in CMS [CMS-Algorithms]. |
| private boolean | Returns: true if okay, false otherwise.key to be validated. key, byte[] the checksum. checksum)For details see http://www.w3.org/TR/xmlenc-core/#sec-CMSKeyChecksum |
| public String | Returns: the algorithm name "DESede".Implements org. |
| public void | init(boolean
true if for wrapping, false otherwise. forWrapping, CipherParameters necessary parameters, may include KeyParameter, ParametersWithRandom, and ParametersWithIV param)Implements org. |
| private static byte[] | |
| public byte[] | Returns: the unwrapped bytes.byte array containing the wrapped key. in, int off set into in that the data starts at. inOff, int length of the data. inLen)Implements org. |
| public byte[] | Returns: the wrapped bytes.byte array containing the encoded key. in, int off set into in that the data starts at. inOff, int length of the data. inLen)Implements org. |
| digest | back to summary |
|---|---|
| pack-priv byte[] digest | |
| engine | back to summary |
|---|---|
| private CBCBlockCipher engine Field engine | |
| forWrapping | back to summary |
|---|---|
| private boolean forWrapping Field forWrapping | |
| iv | back to summary |
|---|---|
| private byte[] iv Field iv | |
| IV2 | back to summary |
|---|---|
| private static final byte[] IV2 Field IV2 | |
| param | back to summary |
|---|---|
| private KeyParameter param Field param | |
| paramPlusIV | back to summary |
|---|---|
| private ParametersWithIV paramPlusIV Field paramPlusIV | |
| sha1 | back to summary |
|---|---|
| pack-priv Digest sha1 | |
| DesEdeWrapEngine | back to summary |
|---|---|
| pack-priv DesEdeWrapEngine() | |
| calculateCMSKeyChecksum | back to summary |
|---|---|
| private byte[] calculateCMSKeyChecksum(byte[] key) Some key wrap algorithms make use of the Key Checksum defined in CMS [CMS-Algorithms]. This is used to provide an integrity check value for the key being wrapped. The algorithm is - Compute the 20 octet SHA-1 hash on the key being wrapped. - Use the first 8 octets of this hash as the checksum value. For details see http://www.w3.org/TR/xmlenc-core/#sec-CMSKeyChecksum.
| |
| checkCMSKeyChecksum | back to summary |
|---|---|
| private boolean checkCMSKeyChecksum(byte[] key, byte[] checksum) For details see http://www.w3.org/TR/xmlenc-core/#sec-CMSKeyChecksum
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Method getAlgorithmName
| |
| init | back to summary |
|---|---|
| public void init(boolean forWrapping, CipherParameters param) Implements org. Method init
| |
| reverse | back to summary |
|---|---|
| private static byte[] reverse(byte[] bs) | |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException Implements org. Method unwrap
| |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] in, int inOff, int inLen) Implements org. Method wrap
| |