|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.TripleDESDecryptorEngine
Implements the raw functionality of the TripleDES algorithm.
We implemented TripleDES as it's defined in NIST's FIPS 46-3.
For a code sample using the Triple DES decryptor engine, click here.
TripleDESEncryptorEngine,
TripleDESKey| Field Summary | ||
|
static int |
BLOCK_LENGTH
Represents the block length in bytes for the algorithm, namely 8 bytes. |
| Constructor Summary | ||
|
TripleDESDecryptorEngine(TripleDESKey key)
Creates a TripleDESDecryptorEngine object based upon a TripleDES key as input, and initializes
this key for use with the algorithm.
|
|
| Method Summary | ||
|
void |
decrypt(byte[] ciphertext,
int ciphertextOffset,
byte[] plaintext,
int plaintextOffset)
Decodes a block of the given ciphertext into a block of plaintext. |
|
String |
getAlgorithm()
Returns the name of the algorithm used. |
|
int |
getBlockLength()
Returns the block length of the block cipher in bytes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BLOCK_LENGTH
| Constructor Detail |
public TripleDESDecryptorEngine(TripleDESKey key) throws CryptoTokenException, CryptoUnsupportedOperationException
TripleDESDecryptorEngine object based upon a TripleDES key as input, and initializes
this key for use with the algorithm.
key - The TripleDESKey object to use for decryption.CryptoTokenException - Thrown when a problem occurs with the crypto token, or the crypto token is invalid.CryptoUnsupportedOperationException - Thrown when a call is made to an unsupported operation.| Method Detail |
public String getAlgorithm()
This method will always return the String "TripleDES"
getAlgorithm in interface BlockDecryptorEnginepublic int getBlockLength()
BlockDecryptorEnginegetBlockLength in interface BlockDecryptorEnginenet.rim.device.api.crypto.BlockDecryptorEngine
public void decrypt(byte[] ciphertext,
int ciphertextOffset,
byte[] plaintext,
int plaintextOffset)
throws CryptoTokenException
BlockDecryptorEnginedecrypt in interface BlockDecryptorEngine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.