Top Description Methods
org.bouncycastle.tls.crypto.impl

public Interface TlsEncryptor

Imports
java.io.IOException

Base interface for an encryptor based on a public key.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the encrypted data.
encrypt
(byte[]
byte array containing the input data.
input
,
int
offset into input where the data starts.
inOff
,
int
the length of the data to encrypt.
length
)

Encrypt data from the passed in input array.

Method Detail

encryptback to summary
public byte[] encrypt(byte[] input, int inOff, int length) throws IOException

Encrypt data from the passed in input array.

Parameters
input:byte[]

byte array containing the input data.

inOff:int

offset into input where the data starts.

length:int

the length of the data to encrypt.

Returns:byte[]

the encrypted data.

Exceptions
IOException:
in case of a processing error.