AsymmetricAlgorithm.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricAlgorithm.cs / 1 / AsymmetricAlgorithm.cs

                            // ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 

// 
// AsymmetricAlgorithm.cs 
//
 
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
    public abstract class AsymmetricAlgorithm : IDisposable {
        protected int KeySizeValue; 
        protected KeySizes[] LegalKeySizesValue;
 
        // 
        // public constructors
        // 

        protected AsymmetricAlgorithm() {}

        // AsymmetricAlgorithm implements IDisposable 

        ///  
        void IDisposable.Dispose() { 
            Dispose(true);
            GC.SuppressFinalize(this); 
        }

        public void Clear() {
            ((IDisposable) this).Dispose(); 
        }
 
        protected abstract void Dispose(bool disposing); 

        // 
        // public properties
        //

        public virtual int KeySize { 
            get { return KeySizeValue; }
            set { 
                int   i; 
                int   j;
 
                for (i=0; i

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK