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
- precedingquery.cs
- Sql8ConformanceChecker.cs
- BuilderInfo.cs
- CodeDomConfigurationHandler.cs
- EvidenceBase.cs
- FrameworkTextComposition.cs
- TargetConverter.cs
- VideoDrawing.cs
- ListBoxItemAutomationPeer.cs
- ObjectSet.cs
- FileClassifier.cs
- EntityDesignPluralizationHandler.cs
- LazyTextWriterCreator.cs
- Transform3DGroup.cs
- Mappings.cs
- ErrorFormatterPage.cs
- MoveSizeWinEventHandler.cs
- PasswordTextContainer.cs
- DSACryptoServiceProvider.cs
- TextElement.cs
- OutputScopeManager.cs
- SchemaComplexType.cs
- ImportContext.cs
- InheritanceRules.cs
- Transform.cs
- FileDataSourceCache.cs
- CoreSwitches.cs
- OpenFileDialog.cs
- RootProfilePropertySettingsCollection.cs
- Pen.cs
- MimeBasePart.cs
- ScrollBar.cs
- EventLogPermissionEntry.cs
- ProcessManager.cs
- CommandField.cs
- DataControlLinkButton.cs
- RenameRuleObjectDialog.cs
- Fx.cs
- SchemaTypeEmitter.cs
- FixedSOMLineRanges.cs
- ColorConverter.cs
- ClientEventManager.cs
- LineUtil.cs
- WebPartChrome.cs
- QuaternionIndependentAnimationStorage.cs
- Trace.cs
- SystemFonts.cs
- Metadata.cs
- OraclePermission.cs
- SqlDataSourceQuery.cs
- QuinticEase.cs
- WorkflowElementDialogWindow.xaml.cs
- UnsafeNativeMethods.cs
- NumberFormatter.cs
- CodeObject.cs
- ApplicationActivator.cs
- TextOptions.cs
- ToolStripMenuItem.cs
- EntityProxyFactory.cs
- Vector3DCollection.cs
- OleDbParameter.cs
- Timer.cs
- InternalConfigSettingsFactory.cs
- Publisher.cs
- CompilationUnit.cs
- TypeResolvingOptions.cs
- XmlSchemaInclude.cs
- TransformDescriptor.cs
- DataPagerFieldCollection.cs
- SqlSelectClauseBuilder.cs
- DataQuery.cs
- CompositeCollection.cs
- XmlAttributeCollection.cs
- SortExpressionBuilder.cs
- SoapIgnoreAttribute.cs
- AccessedThroughPropertyAttribute.cs
- DispatcherTimer.cs
- EndEvent.cs
- ZipIOExtraFieldPaddingElement.cs
- IgnoreSection.cs
- DockingAttribute.cs
- SerializationInfo.cs
- TypedTableGenerator.cs
- LocalizationCodeDomSerializer.cs
- Pair.cs
- ToolboxItemFilterAttribute.cs
- CompositeTypefaceMetrics.cs
- DependencyObject.cs
- LicenseContext.cs
- PagesChangedEventArgs.cs
- InstanceCreationEditor.cs
- SHA256Managed.cs
- PathFigureCollectionValueSerializer.cs
- RelatedPropertyManager.cs
- X509ChainPolicy.cs
- XmlNamespaceMapping.cs
- LinearKeyFrames.cs
- ComponentChangedEvent.cs
- ServicePointManagerElement.cs
- Variable.cs