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
- IndentedTextWriter.cs
- CodeMemberMethod.cs
- ConfigurationManager.cs
- ISAPIRuntime.cs
- PageRanges.cs
- FamilyCollection.cs
- LinqToSqlWrapper.cs
- CursorInteropHelper.cs
- OdbcStatementHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- ReflectEventDescriptor.cs
- GorillaCodec.cs
- TextLineBreak.cs
- InstanceDataCollection.cs
- DataColumnChangeEvent.cs
- CompositeCollectionView.cs
- RegexCode.cs
- EventBuilder.cs
- ToolStripComboBox.cs
- BinaryQueryOperator.cs
- MetadataItem_Static.cs
- LoginView.cs
- ActivityScheduledQuery.cs
- DbConnectionStringBuilder.cs
- Grid.cs
- ExpressionPrefixAttribute.cs
- Line.cs
- SchemaMapping.cs
- DataContractJsonSerializer.cs
- WebContext.cs
- Utils.cs
- WebPartEditorOkVerb.cs
- SystemKeyConverter.cs
- peernodestatemanager.cs
- NumericUpDown.cs
- DataGridItem.cs
- DirectoryNotFoundException.cs
- dbdatarecord.cs
- NumberAction.cs
- XmlSigningNodeWriter.cs
- DataTableReaderListener.cs
- DragDrop.cs
- Logging.cs
- ErrorRuntimeConfig.cs
- ButtonBaseAdapter.cs
- TemplateField.cs
- Comparer.cs
- OleServicesContext.cs
- Vector3DKeyFrameCollection.cs
- Bits.cs
- KnowledgeBase.cs
- XmlSerializer.cs
- DecoderBestFitFallback.cs
- HttpsHostedTransportConfiguration.cs
- HtmlControlPersistable.cs
- HttpModuleCollection.cs
- ProvidersHelper.cs
- WeakRefEnumerator.cs
- Parser.cs
- RemoteWebConfigurationHost.cs
- XhtmlCssHandler.cs
- IOThreadScheduler.cs
- DataObject.cs
- StandardToolWindows.cs
- SHA384.cs
- HttpApplicationFactory.cs
- ComponentCollection.cs
- DictionaryKeyPropertyAttribute.cs
- ReflectionTypeLoadException.cs
- BypassElementCollection.cs
- TableRow.cs
- XmlUtf8RawTextWriter.cs
- MessageDesigner.cs
- ParameterModifier.cs
- infer.cs
- DescendantOverDescendantQuery.cs
- MembershipPasswordException.cs
- Win32MouseDevice.cs
- ProcessModuleDesigner.cs
- Tracer.cs
- PointAnimationUsingKeyFrames.cs
- AssociationSetMetadata.cs
- PrefixQName.cs
- DataGridViewComponentPropertyGridSite.cs
- WebPartEditorCancelVerb.cs
- DefaultBindingPropertyAttribute.cs
- StrokeIntersection.cs
- TraceContextEventArgs.cs
- HostingEnvironment.cs
- SecureEnvironment.cs
- RemoteAsymmetricSignatureFormatter.cs
- EncoderBestFitFallback.cs
- DbParameterCollectionHelper.cs
- TypeUtil.cs
- __FastResourceComparer.cs
- DES.cs
- ResXFileRef.cs
- VerificationAttribute.cs
- COM2ExtendedUITypeEditor.cs
- SoapEnumAttribute.cs