Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Cryptography / KeyedHashAlgorithm.cs / 1 / KeyedHashAlgorithm.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // KeyedHashAlgorithm.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public abstract class KeyedHashAlgorithm : HashAlgorithm { protected byte[] KeyValue; protected KeyedHashAlgorithm() {} // IDisposable methods protected override void Dispose(bool disposing) { // For keyed hash algorithms, we always want to zero out the key value if (disposing) { if (KeyValue != null) Array.Clear(KeyValue, 0, KeyValue.Length); KeyValue = null; } base.Dispose(disposing); } // // public properties // public virtual byte[] Key { get { return (byte[]) KeyValue.Clone(); } set { if (State != 0) throw new CryptographicException(Environment.GetResourceString("Cryptography_HashKeySet")); KeyValue = (byte[]) value.Clone(); } } // // public methods // new static public KeyedHashAlgorithm Create() { return Create("System.Security.Cryptography.KeyedHashAlgorithm"); } new static public KeyedHashAlgorithm Create(String algName) { return (KeyedHashAlgorithm) CryptoConfig.CreateFromName(algName); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrongNameIdentityPermission.cs
- EventLogPermissionAttribute.cs
- TypeListConverter.cs
- HtmlDocument.cs
- DockPatternIdentifiers.cs
- GridView.cs
- WebPartEventArgs.cs
- EditorPartChrome.cs
- JoinGraph.cs
- RtfToken.cs
- SaveFileDialog.cs
- SR.Designer.cs
- PrintingPermissionAttribute.cs
- AtomServiceDocumentSerializer.cs
- OdbcException.cs
- CustomCategoryAttribute.cs
- GeneralTransform2DTo3D.cs
- InputScope.cs
- isolationinterop.cs
- EntityDescriptor.cs
- CompositeDesignerAccessibleObject.cs
- WCFBuildProvider.cs
- GlyphTypeface.cs
- PropertyKey.cs
- ImageBrush.cs
- FormViewDeletedEventArgs.cs
- TextRangeAdaptor.cs
- ColorContextHelper.cs
- DoubleIndependentAnimationStorage.cs
- PeerNearMe.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WebBaseEventKeyComparer.cs
- WebControl.cs
- HttpCacheParams.cs
- recordstatescratchpad.cs
- PlaceHolder.cs
- JavaScriptString.cs
- DashStyle.cs
- WindowsPen.cs
- SAPICategories.cs
- _NegoStream.cs
- OpCodes.cs
- DesigntimeLicenseContext.cs
- XmlSerializerFactory.cs
- DefaultBinder.cs
- FileEnumerator.cs
- AdRotatorDesigner.cs
- DescendantOverDescendantQuery.cs
- SqlFacetAttribute.cs
- StringPropertyBuilder.cs
- ColumnHeaderCollectionEditor.cs
- ServiceProviders.cs
- DictionaryManager.cs
- BasicKeyConstraint.cs
- FactoryId.cs
- ServiceDescriptions.cs
- XmlName.cs
- externdll.cs
- CounterCreationDataConverter.cs
- ArrayWithOffset.cs
- WebPartDisplayModeCancelEventArgs.cs
- Underline.cs
- TraceEventCache.cs
- RijndaelManagedTransform.cs
- PeerPresenceInfo.cs
- IApplicationTrustManager.cs
- MetadataHelper.cs
- DataList.cs
- Descriptor.cs
- CursorEditor.cs
- IPEndPoint.cs
- XmlWriterSettings.cs
- ProtocolElement.cs
- CoTaskMemHandle.cs
- Tracer.cs
- HtmlTextArea.cs
- CombinedTcpChannel.cs
- LogAppendAsyncResult.cs
- TdsParserStaticMethods.cs
- ComPlusThreadInitializer.cs
- diagnosticsswitches.cs
- CustomWebEventKey.cs
- HtmlTitle.cs
- NetMsmqSecurityElement.cs
- ScalarOps.cs
- DataSet.cs
- CompilerErrorCollection.cs
- FormsAuthenticationTicket.cs
- TextRenderer.cs
- RequestQueue.cs
- TablePatternIdentifiers.cs
- DropDownList.cs
- PreservationFileReader.cs
- SectionUpdates.cs
- srgsitem.cs
- MruCache.cs
- HitTestFilterBehavior.cs
- serverconfig.cs
- Baml6ConstructorInfo.cs
- XamlClipboardData.cs