diff options
-rw-r--r-- | crypto/src/crypto/IKeyUnwrapper.cs | 7 | ||||
-rw-r--r-- | crypto/src/crypto/IKeyWrapper.cs | 24 |
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); + } +} |