|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.tls.TlsStreamCipher
public class TlsStreamCipher
| Field Summary | |
|---|---|
protected TlsContext |
context
|
protected StreamCipher |
decryptCipher
|
protected StreamCipher |
encryptCipher
|
protected TlsMac |
readMac
|
protected TlsMac |
writeMac
|
| Constructor Summary | |
|---|---|
TlsStreamCipher(TlsContext context,
StreamCipher clientWriteCipher,
StreamCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize)
|
|
| Method Summary | |
|---|---|
byte[] |
decodeCiphertext(long seqNo,
short type,
byte[] ciphertext,
int offset,
int len)
|
byte[] |
encodePlaintext(long seqNo,
short type,
byte[] plaintext,
int offset,
int len)
|
int |
getPlaintextLimit(int ciphertextLimit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TlsContext context
protected StreamCipher encryptCipher
protected StreamCipher decryptCipher
protected TlsMac writeMac
protected TlsMac readMac
| Constructor Detail |
|---|
public TlsStreamCipher(TlsContext context,
StreamCipher clientWriteCipher,
StreamCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int getPlaintextLimit(int ciphertextLimit)
getPlaintextLimit in interface TlsCipher
public byte[] encodePlaintext(long seqNo,
short type,
byte[] plaintext,
int offset,
int len)
encodePlaintext in interface TlsCipher
public byte[] decodeCiphertext(long seqNo,
short type,
byte[] ciphertext,
int offset,
int len)
throws java.io.IOException
decodeCiphertext in interface TlsCipherjava.io.IOException
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||