Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / KeyedHashAlgorithm.cs / 1305376 / 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 // [System.Security.SecuritySafeCritical] // auto-generated new static public KeyedHashAlgorithm Create() { return Create("System.Security.Cryptography.KeyedHashAlgorithm"); } [System.Security.SecuritySafeCritical] // auto-generated new static public KeyedHashAlgorithm Create(String algName) { return (KeyedHashAlgorithm) CryptoConfig.CreateFromName(algName); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Variable.cs
- StrokeIntersection.cs
- InterleavedZipPartStream.cs
- Point4DValueSerializer.cs
- ManagementOptions.cs
- EDesignUtil.cs
- XmlSchemaType.cs
- HttpResponseHeader.cs
- PersistenceTask.cs
- Int32EqualityComparer.cs
- WindowsIPAddress.cs
- Cloud.cs
- PrintingPermission.cs
- PropertyConverter.cs
- Conditional.cs
- CookieProtection.cs
- ControlBuilder.cs
- Nullable.cs
- ReadWriteSpinLock.cs
- RuntimeEnvironment.cs
- GridSplitter.cs
- TextBox.cs
- XmlDocumentSurrogate.cs
- CodeStatement.cs
- CustomAttributeFormatException.cs
- FixedLineResult.cs
- ScopeCompiler.cs
- GroupItem.cs
- _emptywebproxy.cs
- ControlCommandSet.cs
- ReferencedType.cs
- OrderedDictionary.cs
- SystemResourceHost.cs
- MethodAccessException.cs
- SqlNotificationRequest.cs
- CompilationUnit.cs
- CompiledScopeCriteria.cs
- PlaceHolder.cs
- DecoderFallbackWithFailureFlag.cs
- FileDataSourceCache.cs
- TableParaClient.cs
- DataMisalignedException.cs
- XmlSchemaElement.cs
- SafeNativeMethods.cs
- TextBoxBase.cs
- SqlCacheDependencyDatabase.cs
- FormsAuthenticationUserCollection.cs
- SafeNativeHandle.cs
- Decoder.cs
- ImageDrawing.cs
- NumberSubstitution.cs
- DataGridViewComponentPropertyGridSite.cs
- Margins.cs
- HtmlForm.cs
- ColumnProvider.cs
- ToolStrip.cs
- Collection.cs
- WebPartUserCapability.cs
- MD5CryptoServiceProvider.cs
- Directory.cs
- Emitter.cs
- PropertyMappingExceptionEventArgs.cs
- XDeferredAxisSource.cs
- ContentType.cs
- Attributes.cs
- SqlDataSourceFilteringEventArgs.cs
- EntityDataSourceWizardForm.cs
- Directory.cs
- TextServicesPropertyRanges.cs
- SecureEnvironment.cs
- SoapServerMessage.cs
- DataGridItemEventArgs.cs
- ResourceExpressionBuilder.cs
- LogRecordSequence.cs
- MergeExecutor.cs
- Models.cs
- ExpanderAutomationPeer.cs
- ListViewDataItem.cs
- DefaultTextStoreTextComposition.cs
- PowerModeChangedEventArgs.cs
- ColumnWidthChangingEvent.cs
- ArrayItemValue.cs
- DocumentXmlWriter.cs
- FlowPanelDesigner.cs
- GACIdentityPermission.cs
- XmlSchemaCompilationSettings.cs
- RuntimeConfigLKG.cs
- XmlDataCollection.cs
- MenuAutomationPeer.cs
- DetailsViewModeEventArgs.cs
- Socket.cs
- streamingZipPartStream.cs
- AutomationElementCollection.cs
- XmlQualifiedName.cs
- TargetInvocationException.cs
- DataGridViewSelectedColumnCollection.cs
- FunctionMappingTranslator.cs
- Msec.cs
- CursorInteropHelper.cs
- XmlSchema.cs