Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

pack-priv final Class BcTlsRSAEncryptor

extends Object
implements TlsEncryptor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsEncryptor
Imports
java.io.IOException, org.bouncycastle.crypto.InvalidCipherTextException, org.bouncycastle.crypto.encodings.PKCS1Encoding, org.bouncycastle.crypto.engines.RSABlindedEngine, org.bouncycastle.crypto.params.ParametersWithRandom, .RSAKeyParameters, org.bouncycastle.tls.AlertDescription, .TlsFatalAlert, org.bouncycastle.tls.crypto.TlsEncryptor

Field Summary

Modifier and TypeField and Description
private final BcTlsCrypto
private final RSAKeyParameters

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static RSAKeyParameters
public byte[]
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
)

Implements org.bouncycastle.tls.crypto.TlsEncryptor.encrypt.

Encrypt data from the passed in input array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
private final BcTlsCrypto crypto
pubKeyRSAback to summary
private final RSAKeyParameters pubKeyRSA

Constructor Detail

BcTlsRSAEncryptorback to summary
pack-priv BcTlsRSAEncryptor(BcTlsCrypto crypto, RSAKeyParameters pubKeyRSA)

Method Detail

checkPublicKeyback to summary
private static RSAKeyParameters checkPublicKey(RSAKeyParameters pubKeyRSA)
encryptback to summary
public byte[] encrypt(byte[] input, int inOff, int length) throws IOException

Implements org.bouncycastle.tls.crypto.TlsEncryptor.encrypt.

Doc from org.bouncycastle.tls.crypto.TlsEncryptor.encrypt.

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.