CFBDecryptor is the class used to iterate a given block cipher in 8 or 64-bit
Cipher Feedback (CFB) mode. CFB mode is defined in FIPS 81.
Note: CFB mode uses encryption for both the encryption and decryption of
the block cipher and hence should only be used with symmetric cryptography
and not with asymmetric cryptography.
For a code sample using the CFB decryptor, click here.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Creates the CFB cipher with the given encryptor engine and initialization vector.
It is imperative that the initialization vector is always unique for each key used
or a cryptanalyst can retrieve the plaintext.
Parameters:
engine - The SymmetricKeyEncryptorEngine object to use for decryption.
iv - The initialization vector. This must
have the same length as the block length of the engine.
input - The underlying InputStream object used to read in data for decryption.
eightBitCFB - A boolean to indicate the amount of cipher feedback.
If set, then 8 bits of cipher feedback are used, otherwise, the encryptor engine's
block size determines the amount of cipher feedback.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
decrypt
protected void decrypt(byte[] data,
int dataOffset,
int dataLength)
throws CryptoTokenException
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
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.