summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2019-01-15 09:42:30 +1100
committerDavid Hook <dgh@bouncycastle.org>2019-01-15 09:42:30 +1100
commitac16dcfaca0b2475b185eadc8694bc033000b095 (patch)
treec11cc384b1f0d749e018980605b508004341dfb6 /crypto
parentMerge remote-tracking branch 'origin/master' (diff)
downloadBouncyCastle.NET-ed25519-ac16dcfaca0b2475b185eadc8694bc033000b095.tar.xz
removed generic
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/IKeyUnwrapper.cs7
-rw-r--r--crypto/src/crypto/IKeyWrapper.cs24
2 files changed, 28 insertions, 3 deletions
diff --git a/crypto/src/crypto/IKeyUnwrapper.cs b/crypto/src/crypto/IKeyUnwrapper.cs
index 764ead2ce..2e280d912 100644
--- a/crypto/src/crypto/IKeyUnwrapper.cs
+++ b/crypto/src/crypto/IKeyUnwrapper.cs
@@ -1,15 +1,16 @@
+using System;
+
 namespace Org.BouncyCastle.Crypto
 {
     /// <summary>
     /// Base interface for a key unwrapper.
     /// </summary>
-    /// <typeparam name="A">The algorithm details/parameter type for the key unwrapper.</typeparam>
-    public interface IKeyUnwrapper<out A>
+    public interface IKeyUnwrapper
 	{
         /// <summary>
         /// The parameter set used to configure this key unwrapper.
         /// </summary>
-        A AlgorithmDetails { get; }
+        Object AlgorithmDetails { get; }
 
         /// <summary>
         /// Unwrap the passed in data.
diff --git a/crypto/src/crypto/IKeyWrapper.cs b/crypto/src/crypto/IKeyWrapper.cs
new file mode 100644
index 000000000..d3ece2de2
--- /dev/null
+++ b/crypto/src/crypto/IKeyWrapper.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Org.BouncyCastle.Crypto
+{
+    /// <summary>
+    /// Base interface for a key wrapper.
+    /// </summary>
+    public interface IKeyWrapper
+    {
+        /// <summary>
+        /// The parameter set used to configure this key wrapper.
+        /// </summary>
+        Object AlgorithmDetails { get; }
+
+        /// <summary>
+        /// Wrap the passed in key data.
+        /// </summary>
+        /// <param name="keyData">The key data to be wrapped.</param>
+        /// <returns>an IBlockResult containing the wrapped key data.</returns>
+        IBlockResult Wrap(byte[] keyData);
+    }
+}