Package org.bouncycastle.crypto
Interface SingleBlockEncryptor<T extends Parameters>
-
- Type Parameters:
T
- the parameters type for the encryptor's cipher..
- All Superinterfaces:
SingleBlockCipher<T>
- All Known Subinterfaces:
SingleBlockEncryptorUsingSecureRandom<T>
public interface SingleBlockEncryptor<T extends Parameters> extends SingleBlockCipher<T>
Base interface for a encryptor only able to encrypt a single block of data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encryptBlock(byte[] bytes, int offSet, int length)
Encrypt a single block of data, returning the result.-
Methods inherited from interface org.bouncycastle.crypto.SingleBlockCipher
getInputSize, getOutputSize, getParameters
-
-
-
-
Method Detail
-
encryptBlock
byte[] encryptBlock(byte[] bytes, int offSet, int length) throws PlainInputProcessingException
Encrypt a single block of data, returning the result.- Parameters:
bytes
- array holding the data to be encrypted.offSet
- offset into bytes where the data starts.length
- the number of bytes of data in the bytes array.- Returns:
- a byte array holding the encrypted result.
- Throws:
PlainInputProcessingException
- if there is an issue processing the input provided.
-
-