From a4dfc8f5b5db53ac21d7ad5f5c7851429e902b54 Mon Sep 17 00:00:00 2001 From: David Hook Date: Tue, 15 Jan 2019 09:18:28 +1100 Subject: added missing interface --- crypto/src/crypto/IKeyUnwrapper.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 crypto/src/crypto/IKeyUnwrapper.cs (limited to 'crypto/src') diff --git a/crypto/src/crypto/IKeyUnwrapper.cs b/crypto/src/crypto/IKeyUnwrapper.cs new file mode 100644 index 000000000..764ead2ce --- /dev/null +++ b/crypto/src/crypto/IKeyUnwrapper.cs @@ -0,0 +1,24 @@ +namespace Org.BouncyCastle.Crypto +{ + /// + /// Base interface for a key unwrapper. + /// + /// The algorithm details/parameter type for the key unwrapper. + public interface IKeyUnwrapper + { + /// + /// The parameter set used to configure this key unwrapper. + /// + A AlgorithmDetails { get; } + + /// + /// Unwrap the passed in data. + /// + /// The array containing the data to be unwrapped. + /// The offset into cipherText at which the unwrapped data starts. + /// The length of the data to be unwrapped. + /// an IBlockResult containing the unwrapped key data. + IBlockResult Unwrap(byte[] cipherText, int offset, int length); + } +} + -- cgit 1.5.1