summary refs log tree commit diff
path: root/crypto/src/crypto/IKeyWrapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/IKeyWrapper.cs')
-rw-r--r--crypto/src/crypto/IKeyWrapper.cs24
1 files changed, 24 insertions, 0 deletions
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); + } +}