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>
public interface SingleBlockDecryptor<T extends Parameters> extends SingleBlockCipher<T>
Base interface for a decryptor only able to decrypt a single block of data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]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 Detail
-
decryptBlock
byte[] decryptBlock(byte[] bytes, int offSet, int length) throws InvalidCipherTextExceptionDecrypt 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.
-
-