summary refs log tree commit diff
path: root/Crypto/src/crypto/tls/TlsCipher.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Crypto/src/crypto/tls/TlsCipher.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Crypto/src/crypto/tls/TlsCipher.cs b/Crypto/src/crypto/tls/TlsCipher.cs
new file mode 100644

index 000000000..22c769d82 --- /dev/null +++ b/Crypto/src/crypto/tls/TlsCipher.cs
@@ -0,0 +1,14 @@ +using System; +using System.IO; + +namespace Org.BouncyCastle.Crypto.Tls +{ + public interface TlsCipher + { + /// <exception cref="IOException"></exception> + byte[] EncodePlaintext(ContentType type, byte[] plaintext, int offset, int len); + + /// <exception cref="IOException"></exception> + byte[] DecodeCiphertext(ContentType type, byte[] ciphertext, int offset, int len); + } +}