Package | Description |
---|---|
org.bouncycastle.crypto.tls |
Modifier and Type | Interface and Description |
---|---|
interface |
TlsClientContext
Marker interface to distinguish a TLS client context.
|
interface |
TlsServerContext
Marker interface to distinguish a TLS server context.
|
Modifier and Type | Field and Description |
---|---|
protected TlsContext |
DefaultTlsSignerCredentials.context |
protected TlsContext |
AbstractTlsKeyExchange.context |
protected TlsContext |
TlsStreamCipher.context |
protected TlsContext |
TlsBlockCipher.context |
protected TlsContext |
TlsMac.context |
protected TlsContext |
Chacha20Poly1305.context |
protected TlsContext |
DefaultTlsEncryptionCredentials.context |
protected TlsContext |
AbstractTlsSigner.context |
protected TlsContext |
TlsNullCipher.context |
protected TlsContext |
TlsAEADCipher.context |
Modifier and Type | Method and Description |
---|---|
protected abstract TlsContext |
TlsProtocol.getContext() |
protected TlsContext |
TlsClientProtocol.getContext() |
protected TlsContext |
TlsServerProtocol.getContext() |
Modifier and Type | Method and Description |
---|---|
protected TlsBlockCipher |
DefaultTlsCipherFactory.createAESCipher(TlsContext context,
int cipherKeySize,
int macAlgorithm) |
protected TlsBlockCipher |
DefaultTlsCipherFactory.createCamelliaCipher(TlsContext context,
int cipherKeySize,
int macAlgorithm) |
protected TlsCipher |
DefaultTlsCipherFactory.createChaCha20Poly1305(TlsContext context) |
protected TlsAEADCipher |
DefaultTlsCipherFactory.createCipher_AES_CCM(TlsContext context,
int cipherKeySize,
int macSize) |
protected TlsAEADCipher |
DefaultTlsCipherFactory.createCipher_AES_GCM(TlsContext context,
int cipherKeySize,
int macSize) |
protected TlsAEADCipher |
DefaultTlsCipherFactory.createCipher_AES_OCB(TlsContext context,
int cipherKeySize,
int macSize) |
protected TlsAEADCipher |
DefaultTlsCipherFactory.createCipher_Camellia_GCM(TlsContext context,
int cipherKeySize,
int macSize) |
TlsCipher |
DefaultTlsCipherFactory.createCipher(TlsContext context,
int encryptionAlgorithm,
int macAlgorithm) |
TlsCipher |
TlsCipherFactory.createCipher(TlsContext context,
int encryptionAlgorithm,
int macAlgorithm)
See enumeration classes EncryptionAlgorithm, MACAlgorithm for appropriate argument values
|
TlsCipher |
AbstractTlsCipherFactory.createCipher(TlsContext context,
int encryptionAlgorithm,
int macAlgorithm) |
protected TlsBlockCipher |
DefaultTlsCipherFactory.createDESedeCipher(TlsContext context,
int macAlgorithm) |
protected TlsNullCipher |
DefaultTlsCipherFactory.createNullCipher(TlsContext context,
int macAlgorithm) |
protected TlsStreamCipher |
DefaultTlsCipherFactory.createRC4Cipher(TlsContext context,
int cipherKeySize,
int macAlgorithm) |
protected TlsBlockCipher |
DefaultTlsCipherFactory.createSEEDCipher(TlsContext context,
int macAlgorithm) |
void |
HeartbeatMessage.encode(TlsContext context,
OutputStream output)
Encode this
HeartbeatMessage to an OutputStream . |
protected static void |
TlsProtocol.establishMasterSecret(TlsContext context,
TlsKeyExchange keyExchange) |
static byte[] |
TlsRSAUtils.generateEncryptedPreMasterSecret(TlsContext context,
RSAKeyParameters rsaServerPublicKey,
OutputStream output) |
protected static byte[] |
TlsProtocol.getCurrentPRFHash(TlsContext context,
TlsHandshakeHash handshakeHash,
byte[] sslSender)
'sender' only relevant to SSLv3
|
protected static int |
TlsProtocol.getPRFAlgorithm(TlsContext context,
int ciphersuite) |
static SignatureAndHashAlgorithm |
TlsUtils.getSignatureAndHashAlgorithm(TlsContext context,
TlsSignerCredentials signerCredentials) |
void |
TlsSRPKeyExchange.init(TlsContext context) |
void |
AbstractTlsKeyExchange.init(TlsContext context) |
void |
TlsECDHKeyExchange.init(TlsContext context) |
void |
TlsSigner.init(TlsContext context) |
void |
TlsHandshakeHash.init(TlsContext context) |
void |
AbstractTlsSigner.init(TlsContext context) |
void |
TlsKeyExchange.init(TlsContext context) |
void |
TlsDHKeyExchange.init(TlsContext context) |
static boolean |
TlsUtils.isSSL(TlsContext context) |
static boolean |
TlsUtils.isTLSv11(TlsContext context) |
static boolean |
TlsUtils.isTLSv12(TlsContext context) |
static DigitallySigned |
DigitallySigned.parse(TlsContext context,
InputStream input)
Parse a
DigitallySigned from an InputStream . |
static CertificateURL |
CertificateURL.parse(TlsContext context,
InputStream input)
Parse a
CertificateURL from an InputStream . |
static URLAndHash |
URLAndHash.parse(TlsContext context,
InputStream input)
Parse a
URLAndHash from an InputStream . |
static CertificateRequest |
CertificateRequest.parse(TlsContext context,
InputStream input)
Parse a
CertificateRequest from an InputStream . |
static byte[] |
TlsUtils.PRF(TlsContext context,
byte[] secret,
String asciiLabel,
byte[] seed,
int size) |
static byte[] |
TlsRSAUtils.safeDecryptPreMasterSecret(TlsContext context,
RSAKeyParameters rsaServerPrivateKey,
byte[] encryptedPreMasterSecret) |
Constructor and Description |
---|
Chacha20Poly1305(TlsContext context) |
DefaultTlsEncryptionCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey) |
DefaultTlsSignerCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey) |
DefaultTlsSignerCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey,
SignatureAndHashAlgorithm signatureAndHashAlgorithm) |
TlsAEADCipher(TlsContext context,
AEADBlockCipher clientWriteCipher,
AEADBlockCipher serverWriteCipher,
int cipherKeySize,
int macSize) |
TlsBlockCipher(TlsContext context,
BlockCipher clientWriteCipher,
BlockCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize) |
TlsMac(TlsContext context,
Digest digest,
byte[] key,
int keyOff,
int keyLen)
Generate a new instance of an TlsMac.
|
TlsNullCipher(TlsContext context) |
TlsNullCipher(TlsContext context,
Digest clientWriteDigest,
Digest serverWriteDigest) |
TlsStreamCipher(TlsContext context,
StreamCipher clientWriteCipher,
StreamCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize,
boolean usesNonce) |
Copyright © 2020 BouncyCastle.org. All rights reserved.