AsymmetricAlgorithm.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricAlgorithm.cs / 1305376 / 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 
 
        public void Dispose() {
            Clear(); 
        }

        public void Clear() {
            Dispose(true); 
            GC.SuppressFinalize(this);
        } 
 
        protected virtual void Dispose(bool disposing)
        { 
            return;
        }

        // 
        // public properties
        // 
 
        public virtual int KeySize {
            get { return KeySizeValue; } 
            set {
                int   i;
                int   j;
 
                for (i=0; i[....]
// 
 
//
// 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 
 
        public void Dispose() {
            Clear(); 
        }

        public void Clear() {
            Dispose(true); 
            GC.SuppressFinalize(this);
        } 
 
        protected virtual void Dispose(bool disposing)
        { 
            return;
        }

        // 
        // 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