Skip to Content
Programming .NET Security
book

Programming .NET Security

by Adam Freeman, Allen Jones
June 2003
Intermediate to advanced
714 pages
22h 8m
English
O'Reilly Media, Inc.
Content preview from Programming .NET Security

Name

SymmetricAlgorithm

Synopsis

public abstract class SymmetricAlgorithm : IDisposable {
// Public Constructors
   public SymmetricAlgorithm(  );
// Protected Instance Fields
   protected int BlockSizeValue;
   protected int FeedbackSizeValue;
   protected byte[  ] IVValue;
   protected int KeySizeValue;
   protected byte[  ] KeyValue;
   protected KeySizes[  ] LegalBlockSizesValue;
   protected KeySizes[  ] LegalKeySizesValue;
   protected CipherMode ModeValue;
   protected PaddingMode PaddingValue;
// Public Instance Properties
   public virtual int BlockSize{set; get; }
   public virtual int FeedbackSize{set; get; }
   public virtual byte[  ] IV{set; get; }
   public virtual byte[  ] Key{set; get; }
   public virtual int KeySize{set; get; }
   public virtual KeySizes[  ] LegalBlockSizes{get; }
   public virtual KeySizes[  ] LegalKeySizes{get; }
   public virtual CipherMode Mode{set; get; }
   public virtual PaddingMode Padding{set; get; }
// Public Static Methods
   public static SymmetricAlgorithm Create(  );
   public static SymmetricAlgorithm Create(string algName);
// Public Instance Methods
   public void Clear(  );
   public virtual ICryptoTransform CreateDecryptor(  );
   public abstract ICryptoTransform CreateDecryptor(byte[  ] rgbKey, byte[  ] rgbIV);
   public virtual ICryptoTransform CreateEncryptor(  );
   public abstract ICryptoTransform CreateEncryptor(byte[  ] rgbKey, byte[  ] rgbIV);
   public abstract void GenerateIV(  );
   public abstract void GenerateKey(  );
   public bool ValidKeySize(int bitLength);
// Protected Instance Methods
   protected virtual void Dispose ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET Framework Security

.NET Framework Security

Brian A. LaMacchia, Sebastian Lange, Matthew Lyons, Rudi Martin, Kevin T. Price
.NET Security and Cryptography

.NET Security and Cryptography

Peter Thorsteinson, G. Gnana Arun Ganesh
ASP.NET Core Security

ASP.NET Core Security

Christian Wenz

Publisher Resources

ISBN: 0596004427Supplemental ContentErrata Page