Top Description Methods
org.bouncycastle.crypto

public Interface SingleBlockEncryptor<T extends Parameters>

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

Base interface for a encryptor only able to encrypt a single block of data.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

a byte array holding the encrypted result.
encryptBlock
(byte[]
array holding the data to be encrypted.
bytes
,
int
offset into bytes where the data starts.
offSet
,
int
the number of bytes of data in the bytes array.
length
)

Encrypt a single block of data, returning the result.

Inherited from org.bouncycastle.crypto.SingleBlockCipher:
getInputSizegetOutputSizegetParameters

Method Detail

encryptBlockback to summary
public byte[] encryptBlock(byte[] bytes, int offSet, int length) throws PlainInputProcessingException

Encrypt a single block of data, returning the result.

Parameters
bytes:byte[]

array holding the data to be encrypted.

offSet:int

offset into bytes where the data starts.

length:int

the number of bytes of data in the bytes array.

Returns:byte[]

a byte array holding the encrypted result.

Exceptions
PlainInputProcessingException:
if there is an issue processing the input provided.