Package org.bouncycastle.tls.crypto.impl
Interface TlsEncryptor
-
public interface TlsEncryptor
Base interface for an encryptor based on a public key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encrypt(byte[] input, int inOff, int length)
Encrypt data from the passed in input array.
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] input, int inOff, int length) throws java.io.IOException
Encrypt data from the passed in input array.- Parameters:
input
- byte array containing the input data.inOff
- offset into input where the data starts.length
- the length of the data to encrypt.- Returns:
- the encrypted data.
- Throws:
java.io.IOException
- in case of a processing error.
-
-