Skip to content

Commit

Permalink
added missing interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Jan 14, 2019
1 parent 6ca2f2f commit a4dfc8f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions crypto/src/crypto/IKeyUnwrapper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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>
{
/// <summary>
/// The parameter set used to configure this key unwrapper.
/// </summary>
A AlgorithmDetails { get; }

/// <summary>
/// Unwrap the passed in data.
/// </summary>
/// <param name="cipherText">The array containing the data to be unwrapped.</param>
/// <param name="offset">The offset into cipherText at which the unwrapped data starts.</param>
/// <param name="length">The length of the data to be unwrapped.</param>
/// <returns>an IBlockResult containing the unwrapped key data.</returns>
IBlockResult Unwrap(byte[] cipherText, int offset, int length);
}
}

0 comments on commit a4dfc8f

Please sign in to comment.