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
- RegistryKey.cs
- WindowsScrollBarBits.cs
- SiteMapNodeItem.cs
- HtmlContainerControl.cs
- XLinq.cs
- CngProvider.cs
- ExpressionBindingsDialog.cs
- DataGridTextBox.cs
- XmlSchemaProviderAttribute.cs
- XmlSubtreeReader.cs
- ChangeDirector.cs
- ExpressionList.cs
- ProvideValueServiceProvider.cs
- JoinGraph.cs
- ClientConfigPaths.cs
- SectionRecord.cs
- DebugView.cs
- KnownTypeAttribute.cs
- SecurityUtils.cs
- MouseButtonEventArgs.cs
- DependencyPropertyHelper.cs
- ControlBindingsCollection.cs
- PeerNode.cs
- ISAPIRuntime.cs
- SafeEventHandle.cs
- RuleSetCollection.cs
- SqlFunctionAttribute.cs
- CodeAttachEventStatement.cs
- TypeDescriptionProviderAttribute.cs
- LoginView.cs
- SQLChars.cs
- HexParser.cs
- ControlPaint.cs
- WorkflowDesignerColors.cs
- EdmComplexPropertyAttribute.cs
- AnimatedTypeHelpers.cs
- Mutex.cs
- RealProxy.cs
- TriggerActionCollection.cs
- DelegateInArgument.cs
- PropVariant.cs
- GradientStop.cs
- PolicyChain.cs
- Content.cs
- Wizard.cs
- AdPostCacheSubstitution.cs
- SplineKeyFrames.cs
- GridViewUpdateEventArgs.cs
- ParameterRetriever.cs
- BulletedListEventArgs.cs
- TypedAsyncResult.cs
- InstalledVoice.cs
- MailMessage.cs
- SystemDropShadowChrome.cs
- ObjectDataSourceStatusEventArgs.cs
- ParentQuery.cs
- embossbitmapeffect.cs
- SamlSubjectStatement.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ECDiffieHellman.cs
- DataGridViewHeaderCell.cs
- PeerInputChannelListener.cs
- StrokeDescriptor.cs
- ContainerUIElement3D.cs
- EnumMemberAttribute.cs
- TracedNativeMethods.cs
- TypeUtils.cs
- WebPartConnectionsEventArgs.cs
- GraphicsPath.cs
- XmlQualifiedName.cs
- BufferedStream.cs
- WebControlsSection.cs
- TableParaClient.cs
- OleDbParameterCollection.cs
- DataBoundControlAdapter.cs
- SchemaCollectionCompiler.cs
- HttpServerProtocol.cs
- CodeLinePragma.cs
- RpcAsyncResult.cs
- UIElementIsland.cs
- XamlSerializer.cs
- ReadOnlyHierarchicalDataSource.cs
- XamlPointCollectionSerializer.cs
- ProcessRequestArgs.cs
- AttachmentCollection.cs
- PageParser.cs
- RegistryExceptionHelper.cs
- IOThreadScheduler.cs
- CodeAttributeArgument.cs
- CodeStatementCollection.cs
- DataSourceCache.cs
- StylusPointPropertyInfo.cs
- _DisconnectOverlappedAsyncResult.cs
- Timeline.cs
- InputLanguageEventArgs.cs
- StorageInfo.cs
- OleDbParameter.cs
- StorageAssociationTypeMapping.cs
- DbConnectionPoolIdentity.cs
- IISUnsafeMethods.cs