< Summary

Class:Microsoft.Azure.KeyVault.Cryptography.AsymmetricSignatureAlgorithm
Assembly:Microsoft.Azure.KeyVault.Cryptography
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\SignatureAlgorithm.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:43
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 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
 5using System.Security.Cryptography;
 6
 7namespace Microsoft.Azure.KeyVault.Cryptography
 8{
 9    /// <summary>
 10    /// Abstract SignatureAlgorithm
 11    /// </summary>
 12    public abstract class SignatureAlgorithm : Algorithm
 13    {
 14        protected SignatureAlgorithm( string name )
 15            : base( name )
 16        {
 17        }
 18    }
 19
 20    /// <summary>
 21    /// Abstract Asymmetric Signature algorithm
 22    /// </summary>
 23    public abstract class AsymmetricSignatureAlgorithm : SignatureAlgorithm
 24    {
 25        protected AsymmetricSignatureAlgorithm( string name )
 1026            : base( name )
 27        {
 1028        }
 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}

Methods/Properties

.ctor(...)