|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.engines.DESedeWrapEngine
Wrap keys according to RFC 3217.
Note: if you are using this to wrap triple-des keys you need to set the parity bits on the key and, if it's a two-key triple-des key, pad it yourself.
| Constructor Summary | |
DESedeWrapEngine()
|
|
| Method Summary | |
java.lang.String |
getAlgorithmName()
Method getAlgorithmName |
void |
init(boolean forWrapping,
CipherParameters param)
Method init |
byte[] |
unwrap(byte[] in,
int inOff,
int inLen)
Method unwrap |
byte[] |
wrap(byte[] in,
int inOff,
int inLen)
Method wrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DESedeWrapEngine()
| Method Detail |
public void init(boolean forWrapping,
CipherParameters param)
init in interface WrapperforWrapping - true if for wrapping, false otherwise.param - necessary parameters, may include KeyParameter, ParametersWithRandom, and ParametersWithIVpublic java.lang.String getAlgorithmName()
getAlgorithmName in interface Wrapper
public byte[] wrap(byte[] in,
int inOff,
int inLen)
wrap in interface Wrapperin - byte array containing the encoded key.inOff - off set into in that the data starts at.inLen - length of the data.
public byte[] unwrap(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextException
unwrap in interface Wrapperin - byte array containing the wrapped key.inOff - off set into in that the data starts at.inLen - length of the data.
InvalidCipherTextException
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||