diff options
author | David Hook <dgh@bouncycastle.org> | 2019-01-15 09:42:30 +1100 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2019-01-15 09:42:30 +1100 |
commit | ac16dcfaca0b2475b185eadc8694bc033000b095 (patch) | |
tree | c11cc384b1f0d749e018980605b508004341dfb6 | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | BouncyCastle.NET-ed25519-ac16dcfaca0b2475b185eadc8694bc033000b095.tar.xz |
removed generic
-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); + } +} |