net.rim.device.api.crypto
Interface BlockEncryptorEngineExt

All Superinterfaces:
BlockEncryptorEngine
All Known Implementing Classes:
AESCBCEncryptorEngine, TripleDESCBCEncryptorEngine

public interface BlockEncryptorEngineExt
extends BlockEncryptorEngine

The BlockEncryptorEngineExt interface describes the functionality of using a block cipher for encryption.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 5.0.0

Method Summary
Category: Signed  void encrypt(byte[] plaintext, int plaintextOffset, byte[] ciphertext, int ciphertextOffset, int numBlocks)
          Encrypts a series of blocks of the given plaintext into a series of blocks of ciphertext.
 
Methods inherited from interface net.rim.device.api.crypto.BlockEncryptorEngine
encrypt, getAlgorithm, getBlockLength
 



Method Detail

encrypt

void encrypt(byte[] plaintext,
             int plaintextOffset,
             byte[] ciphertext,
             int ciphertextOffset,
             int numBlocks)
             throws CryptoTokenException
Encrypts a series of blocks of the given plaintext into a series of blocks of ciphertext.

Parameters:
plaintext - A byte array containing the input that is to be encrypted.
plaintextOffset - The starting offset, or initial byte position, of the data within the input array.
ciphertext - A byte array to hold the ciphertext output from the method.
ciphertextOffset - The starting offset, or initial byte position, of the data within the output array.
numBlocks - The number of blocks to encrypt.
Throws:
CryptoTokenException - Thrown when an problem occurs with the crypto token or the crypto token is invalid.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 5.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal