Top Description Methods
org.bouncycastle.crypto

public Interface SingleBlockDecryptor<T extends Parameters>

extends SingleBlockCipher<T extends Parameters>
Known Direct Subinterfaces
org.bouncycastle.crypto.SingleBlockDecryptorUsingSecureRandom
Type Parameters
<T>
the parameters type for the decryptor's cipher..

Base interface for a decryptor only able to decrypt a single block of data.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

a byte array holding the decrypted data.
decryptBlock
(byte[]
array holding encrypted block.
bytes
,
int
offset into bytes where encrypted data starts.
offSet
,
int
the number of bytes of encrypted data in the bytes array.
length
)

Decrypt a single block of data, returning the result.

Inherited from org.bouncycastle.crypto.SingleBlockCipher:
getInputSizegetOutputSizegetParameters

Method Detail

decryptBlockback to summary
public byte[] decryptBlock(byte[] bytes, int offSet, int length) throws InvalidCipherTextException

Decrypt a single block of data, returning the result.

Parameters
bytes:byte[]

array holding encrypted block.

offSet:int

offset into bytes where encrypted data starts.

length:int

the number of bytes of encrypted data in the bytes array.

Returns:byte[]

a byte array holding the decrypted data.

Exceptions
InvalidCipherTextException:
in the event the data is inappropriate for the cipher implemented.