Package org.bouncycastle.crypto
Interface SingleBlockDecryptor<T extends Parameters>
- Type Parameters:
T
- the parameters type for the decryptor's cipher..
- All Superinterfaces:
SingleBlockCipher<T>
- All Known Subinterfaces:
SingleBlockDecryptorUsingSecureRandom<T>
Base interface for a decryptor only able to decrypt a single block of data.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decryptBlock
(byte[] bytes, int offSet, int length) Decrypt a single block of data, returning the result.Methods inherited from interface org.bouncycastle.crypto.SingleBlockCipher
getInputSize, getOutputSize, getParameters
-
Method Details
-
decryptBlock
Decrypt a single block of data, returning the result.- Parameters:
bytes
- array holding encrypted block.offSet
- offset into bytes where encrypted data starts.length
- the number of bytes of encrypted data in the bytes array.- Returns:
- a byte array holding the decrypted data.
- Throws:
InvalidCipherTextException
- in the event the data is inappropriate for the cipher implemented.
-