< Summary

Class:Microsoft.Azure.KeyVault.Cryptography.Algorithms.ES256K
Assembly:Microsoft.Azure.KeyVault.Cryptography
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\Algorithms\Ecdsa256.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:27
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
CreateSignatureTransform(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\Algorithms\Ecdsa256.cs

#LineLine coverage
 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
 7using System.Security.Cryptography;
 8
 9namespace 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
 218        public ES256K() : base( AlgorithmName )
 19        {
 220        }
 21
 22        public override ISignatureTransform CreateSignatureTransform( AsymmetricAlgorithm key )
 23        {
 1624            return CreateSignatureTransform( key, AlgorithmName );
 25        }
 26    }
 27}