| 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 CipherParameters | param
Field param |
| private ParametersWithIV | paramPlusIV
Field paramPlusIV |
| pack-priv Digest | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | calculateCMSKeyChecksum(byte[] key)
Some key wrap algorithms make use of the Key Checksum defined in CMS [CMS-Algorithms]. |
| private boolean | checkCMSKeyChecksum(byte[] key, byte[] checksum)
For details see http://www.w3.org/TR/xmlenc-core/#sec-CMSKeyChecksum |
| public String | Returns: the algorithm name "RC2".Implements org. |
| public void | init(boolean forWrapping, CipherParameters param)
Implements org. |
| public byte[] | Returns: the unwrapped bytes.Implements org. |
| public byte[] | Returns: the wrapped bytes.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 CipherParameters param Field param | |
| paramPlusIV | back to summary |
|---|---|
| private ParametersWithIV paramPlusIV Field paramPlusIV | |
| sha1 | back to summary |
|---|---|
| pack-priv Digest sha1 | |
| sr | back to summary |
|---|---|
| private SecureRandom sr | |
| RC2WrapEngine | back to summary |
|---|---|
| pack-priv RC2WrapEngine() | |
| 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 | |
| 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
| |