< Summary

Class:Microsoft.Azure.KeyVault.Cryptography.KeyWrapAlgorithm
Assembly:Microsoft.Azure.KeyVault.Cryptography
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\KeyWrapAlgorithm.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:35
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\KeyWrapAlgorithm.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    /// An abstract Key Wrap Algorithm
 11    /// </summary>
 12    public abstract class KeyWrapAlgorithm : Algorithm
 13    {
 14        protected KeyWrapAlgorithm( string name )
 1815            : base( name )
 16        {
 1817        }
 18
 19        /// <summary>
 20        /// Create an encryptor for the specified key
 21        /// </summary>
 22        /// <param name="key">The key</param>
 23        /// <param name="iv">The initialization vector</param>
 24        /// <returns>An ICryptoTranform for encrypting data</returns>
 25        public abstract ICryptoTransform CreateEncryptor( byte[] key, byte[] iv );
 26
 27        /// <summary>
 28        /// Create a decryptor for the specified key
 29        /// </summary>
 30        /// <param name="key">The key</param>
 31        /// <param name="iv">The initialization vector</param>
 32        /// <returns>An ICryptoTransform for decrypting data</returns>
 33        public abstract ICryptoTransform CreateDecryptor( byte[] key, byte[] iv );
 34    }
 35}

Methods/Properties

.ctor(...)