| 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 |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| private boolean | |
| public String | Returns: the algorithm name "RC2".Implements org. Method getAlgorithmName |
| public void | init(boolean
true if for wrapping, false for unwrap. forWrapping, CipherParameters parameters for wrap/unwrapping (iv required for unwrap). param)Implements org. Method init |
| public byte[] | Returns: the unwrapped bytes.byte array containing the wrapped key. in, int offset into in array that the wrapped key starts at. inOff, int length of wrapped key data. inLen)Implements org. Method unwrap |
| public byte[] | Returns: the wrapped bytes.byte array containing the key. in, int offset into in array that the key data starts at. inOff, int length of key data. inLen)Implements org. Method wrap |
| 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 |
|---|---|
| public RC2WrapEngine() | |
| calculateCMSKeyChecksum | back to summary |
|---|---|
| private byte[] calculateCMSKeyChecksum(byte[] key) | |
| checkCMSKeyChecksum | back to summary |
|---|---|
| private boolean checkCMSKeyChecksum(byte[] key, byte[] checksum) | |
| 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
| |