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>
Base interface for a encryptor only able to encrypt a single block of data.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
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 Details
-
encryptBlock
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.
-