| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 3 | | // license information. |
| | 4 | |
|
| | 5 | | using System.Security.Cryptography; |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.KeyVault.Cryptography |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Abstract SignatureAlgorithm |
| | 11 | | /// </summary> |
| | 12 | | public abstract class SignatureAlgorithm : Algorithm |
| | 13 | | { |
| | 14 | | protected SignatureAlgorithm( string name ) |
| 10 | 15 | | : base( name ) |
| | 16 | | { |
| 10 | 17 | | } |
| | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Abstract Asymmetric Signature algorithm |
| | 22 | | /// </summary> |
| | 23 | | public abstract class AsymmetricSignatureAlgorithm : SignatureAlgorithm |
| | 24 | | { |
| | 25 | | protected AsymmetricSignatureAlgorithm( string name ) |
| | 26 | | : base( name ) |
| | 27 | | { |
| | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Creates a signature transformation implementation that may |
| | 32 | | /// be used to sign or verify. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="key">The asymmetric key to use.</param> |
| | 35 | | /// <returns>An ISignatureTransform implementation.</returns> |
| | 36 | | /// <remarks>The transform implementation "borrows" the supplied |
| | 37 | | /// AsymmetricAlgorithm; callers should not call Dispose on the |
| | 38 | | /// AsymmetricAlgorithm until use of the transform implementation |
| | 39 | | /// is complete. |
| | 40 | | /// </remarks> |
| | 41 | | public abstract ISignatureTransform CreateSignatureTransform( AsymmetricAlgorithm key ); |
| | 42 | | } |
| | 43 | | } |