| | | 1 | | // |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | |
| | | 7 | | using System.Security.Cryptography; |
| | | 8 | | |
| | | 9 | | namespace Microsoft.Azure.KeyVault.Cryptography.Algorithms |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Represents ECDSA with a P-256K curve. |
| | | 13 | | /// </summary> |
| | | 14 | | public class ES256K : Ecdsa |
| | | 15 | | { |
| | | 16 | | public const string AlgorithmName = "ES256K"; |
| | | 17 | | |
| | 2 | 18 | | public ES256K() : base( AlgorithmName ) |
| | | 19 | | { |
| | 2 | 20 | | } |
| | | 21 | | |
| | | 22 | | public override ISignatureTransform CreateSignatureTransform( AsymmetricAlgorithm key ) |
| | | 23 | | { |
| | 16 | 24 | | return CreateSignatureTransform( key, AlgorithmName ); |
| | | 25 | | } |
| | | 26 | | } |
| | | 27 | | } |