static final class SSLCipher.T11BlockWriteCipherGenerator.BlockWriteCipher extends SSLCipher.SSLWriteCipher
| 限定符和类型 | 字段和说明 |
|---|---|
private Cipher |
cipher |
private SecureRandom |
random |
authenticator, baseSecret, keyLimitCountdown, keyLimitEnabled, protocolVersion| 构造器和说明 |
|---|
BlockWriteCipher(Authenticator authenticator,
ProtocolVersion protocolVersion,
SSLCipher sslCipher,
String algorithm,
Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) int |
calculateFragmentSize(int packetLimit,
int headerSize) |
(专用程序包) int |
calculatePacketSize(int fragmentSize,
int headerSize) |
(专用程序包) void |
dispose() |
int |
encrypt(byte contentType,
ByteBuffer bb) |
(专用程序包) int |
getExplicitNonceSize() |
(专用程序包) boolean |
isCBCMode() |
atKeyLimit, isNullCipher, nullTlsWriteCipherprivate final Cipher cipher
private final SecureRandom random
BlockWriteCipher(Authenticator authenticator, ProtocolVersion protocolVersion, SSLCipher sslCipher, String algorithm, Key key, AlgorithmParameterSpec params, SecureRandom random) throws GeneralSecurityException
public int encrypt(byte contentType,
ByteBuffer bb)
encrypt 在类中 SSLCipher.SSLWriteCiphervoid dispose()
dispose 在类中 SSLCipher.SSLWriteCipherint getExplicitNonceSize()
int calculateFragmentSize(int packetLimit,
int headerSize)
int calculatePacketSize(int fragmentSize,
int headerSize)
boolean isCBCMode()
isCBCMode 在类中 SSLCipher.SSLWriteCipherCopyright © 2023. All rights reserved.