You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
471 B
16 lines
471 B
using System;
|
|
using System.IO;
|
|
|
|
namespace Org.BouncyCastle.Crypto.Tls
|
|
{
|
|
public interface TlsCipher
|
|
{
|
|
int GetPlaintextLimit(int ciphertextLimit);
|
|
|
|
/// <exception cref="IOException"></exception>
|
|
byte[] EncodePlaintext(long seqNo, byte type, byte[] plaintext, int offset, int len);
|
|
|
|
/// <exception cref="IOException"></exception>
|
|
byte[] DecodeCiphertext(long seqNo, byte type, byte[] ciphertext, int offset, int len);
|
|
}
|
|
}
|
|
|