From ac16dcfaca0b2475b185eadc8694bc033000b095 Mon Sep 17 00:00:00 2001 From: David Hook Date: Tue, 15 Jan 2019 09:42:30 +1100 Subject: removed generic --- crypto/src/crypto/IKeyUnwrapper.cs | 7 ++++--- crypto/src/crypto/IKeyWrapper.cs | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 crypto/src/crypto/IKeyWrapper.cs (limited to 'crypto/src') 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 { /// /// Base interface for a key unwrapper. /// - /// The algorithm details/parameter type for the key unwrapper. - public interface IKeyUnwrapper + public interface IKeyUnwrapper { /// /// The parameter set used to configure this key unwrapper. /// - A AlgorithmDetails { get; } + Object AlgorithmDetails { get; } /// /// 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 +{ + /// + /// Base interface for a key wrapper. + /// + public interface IKeyWrapper + { + /// + /// The parameter set used to configure this key wrapper. + /// + Object AlgorithmDetails { get; } + + /// + /// Wrap the passed in key data. + /// + /// The key data to be wrapped. + /// an IBlockResult containing the wrapped key data. + IBlockResult Wrap(byte[] keyData); + } +} -- cgit 1.5.1