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
- SetStateDesigner.cs
- TdsParserSessionPool.cs
- FrugalList.cs
- MatrixTransform3D.cs
- ConnectionProviderAttribute.cs
- SqlNodeAnnotations.cs
- FactoryMaker.cs
- InternalConfigHost.cs
- RangeBaseAutomationPeer.cs
- ApplicationBuildProvider.cs
- WmlCommandAdapter.cs
- TextContainerChangeEventArgs.cs
- ObjRef.cs
- EntityDataReader.cs
- DeclarativeConditionsCollection.cs
- CurrentTimeZone.cs
- ViewValidator.cs
- DataKey.cs
- ConditionalAttribute.cs
- InstanceContextMode.cs
- SecurityContext.cs
- MILUtilities.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- InternalPermissions.cs
- LinqDataSourceStatusEventArgs.cs
- BamlReader.cs
- Model3DGroup.cs
- MatrixConverter.cs
- Operand.cs
- OAVariantLib.cs
- TemplateField.cs
- ExpandableObjectConverter.cs
- DelegatedStream.cs
- XmlSerializerAssemblyAttribute.cs
- HttpTransportSecurityElement.cs
- AnnotationAdorner.cs
- FlowchartDesigner.xaml.cs
- UpdateProgress.cs
- PositiveTimeSpanValidatorAttribute.cs
- WeakEventManager.cs
- DynamicPropertyReader.cs
- PathFigure.cs
- LogEntrySerializer.cs
- WebBrowserPermission.cs
- CollaborationHelperFunctions.cs
- OletxTransactionFormatter.cs
- Translator.cs
- PeerNode.cs
- TextParaLineResult.cs
- ElementMarkupObject.cs
- LoadRetryConstantStrategy.cs
- ErrorHandlerFaultInfo.cs
- AppDomainProtocolHandler.cs
- CheckBoxBaseAdapter.cs
- CommittableTransaction.cs
- FontNamesConverter.cs
- DBParameter.cs
- SolidColorBrush.cs
- MenuItemCollection.cs
- ProtocolsConfiguration.cs
- DataSourceHelper.cs
- Lasso.cs
- ForEachAction.cs
- CompilerHelpers.cs
- AssemblyInfo.cs
- SubqueryRules.cs
- DbDataRecord.cs
- AuthenticationManager.cs
- SortQuery.cs
- HtmlInputControl.cs
- ErrorEventArgs.cs
- PageContentCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- sortedlist.cs
- RoutedEventHandlerInfo.cs
- Attributes.cs
- HttpCachePolicyBase.cs
- IndexedEnumerable.cs
- ProfileProvider.cs
- ServicePoint.cs
- OpCellTreeNode.cs
- CommandField.cs
- PropertyGeneratedEventArgs.cs
- SqlSupersetValidator.cs
- ImageDrawing.cs
- XmlSerializationReader.cs
- DeclarativeCatalogPart.cs
- NavigatingCancelEventArgs.cs
- CodeBlockBuilder.cs
- SqlServices.cs
- CTreeGenerator.cs
- IdentityModelDictionary.cs
- BinHexEncoder.cs
- EntitySetBase.cs
- ToolStripAdornerWindowService.cs
- xmlsaver.cs
- login.cs
- ListBox.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- JsonClassDataContract.cs