forked from bcgit/bc-csharp
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
|