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

index 000000000..58202b302 --- /dev/null +++ b/Crypto/src/crypto/IWrapper.cs
@@ -0,0 +1,18 @@ +using System; + +using Org.BouncyCastle.Security; + +namespace Org.BouncyCastle.Crypto +{ + public interface IWrapper + { + /// <summary>The name of the algorithm this cipher implements.</summary> + string AlgorithmName { get; } + + void Init(bool forWrapping, ICipherParameters parameters); + + byte[] Wrap(byte[] input, int inOff, int length); + + byte[] Unwrap(byte[] input, int inOff, int length); + } +}