Property | Type | Description | |
---|---|---|---|
context | TlsContext | ||
encryptCipher | Org.BouncyCastle.Crypto.Engines.ChaCha7539Engine | ||
encryptIV | byte[] |
Method | Description | |
---|---|---|
Chacha20Poly1305 ( TlsContext context ) : System | ||
DecodeCiphertext ( long seqNo, byte type, byte ciphertext, int offset, int len ) : byte[] | ||
EncodePlaintext ( long seqNo, byte type, byte plaintext, int offset, int len ) : byte[] | ||
GetPlaintextLimit ( int ciphertextLimit ) : int |
Method | Description | |
---|---|---|
CalculateNonce ( long seqNo, byte iv ) : byte[] | ||
CalculateRecordMac ( |
||
GenerateRecordMacKey ( IStreamCipher cipher ) : |
||
GetAdditionalData ( long seqNo, byte type, int len ) : byte[] | ||
InitRecord ( IStreamCipher cipher, bool forEncryption, long seqNo, byte iv ) : |
||
UpdateRecordMacLength ( IMac mac, int len ) : void | ||
UpdateRecordMacText ( IMac mac, byte buf, int off, int len ) : void |
protected CalculateNonce ( long seqNo, byte iv ) : byte[] | ||
seqNo | long | |
iv | byte | |
return | byte[] |
protected CalculateRecordMac ( |
||
macKey | ||
additionalData | byte | |
buf | byte | |
off | int | |
len | int | |
return | byte[] |
public Chacha20Poly1305 ( TlsContext context ) : System | ||
context | TlsContext | |
return | System |
public DecodeCiphertext ( long seqNo, byte type, byte ciphertext, int offset, int len ) : byte[] | ||
seqNo | long | |
type | byte | |
ciphertext | byte | |
offset | int | |
len | int | |
return | byte[] |
public EncodePlaintext ( long seqNo, byte type, byte plaintext, int offset, int len ) : byte[] | ||
seqNo | long | |
type | byte | |
plaintext | byte | |
offset | int | |
len | int | |
return | byte[] |
protected GenerateRecordMacKey ( IStreamCipher cipher ) : |
||
cipher | IStreamCipher | |
return |
protected GetAdditionalData ( long seqNo, byte type, int len ) : byte[] | ||
seqNo | long | |
type | byte | |
len | int | |
return | byte[] |
public GetPlaintextLimit ( int ciphertextLimit ) : int | ||
ciphertextLimit | int | |
return | int |
protected InitRecord ( IStreamCipher cipher, bool forEncryption, long seqNo, byte iv ) : |
||
cipher | IStreamCipher | |
forEncryption | bool | |
seqNo | long | |
iv | byte | |
return |
protected UpdateRecordMacLength ( IMac mac, int len ) : void | ||
mac | IMac | |
len | int | |
return | void |
protected UpdateRecordMacText ( IMac mac, byte buf, int off, int len ) : void | ||
mac | IMac | |
buf | byte | |
off | int | |
len | int | |
return | void |
protected ChaCha7539Engine,Org.BouncyCastle.Crypto.Engines encryptCipher | ||
return | Org.BouncyCastle.Crypto.Engines.ChaCha7539Engine |