Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContainerParaClient.cs
- DataTableReaderListener.cs
- ParserHooks.cs
- SoapCodeExporter.cs
- BindingValueChangedEventArgs.cs
- BindUriHelper.cs
- TraceHandlerErrorFormatter.cs
- TileBrush.cs
- InputDevice.cs
- NavigationService.cs
- SingleConverter.cs
- SubqueryTrackingVisitor.cs
- XPathConvert.cs
- CodeAttributeArgument.cs
- HashHelper.cs
- TextChangedEventArgs.cs
- NamespaceDecl.cs
- ManipulationStartingEventArgs.cs
- PipelineDeploymentState.cs
- BitmapEncoder.cs
- XmlSchemaAny.cs
- ErrorInfoXmlDocument.cs
- DesignTimeDataBinding.cs
- TraversalRequest.cs
- TextViewSelectionProcessor.cs
- IArgumentProvider.cs
- FontCacheLogic.cs
- LoadedOrUnloadedOperation.cs
- SqlInternalConnectionSmi.cs
- WorkItem.cs
- JsonQueryStringConverter.cs
- MetafileHeader.cs
- GuidConverter.cs
- HtmlHistory.cs
- ObjectStateEntry.cs
- WindowHelperService.cs
- HtmlTableRowCollection.cs
- Action.cs
- HtmlProps.cs
- BinaryWriter.cs
- NullableBoolConverter.cs
- CodeTypeDeclarationCollection.cs
- SelectionListDesigner.cs
- UTF7Encoding.cs
- SafeLocalMemHandle.cs
- ElementUtil.cs
- Stack.cs
- SettingsAttributeDictionary.cs
- WindowsUpDown.cs
- XmlDataSourceView.cs
- WebContext.cs
- ErrorEventArgs.cs
- UmAlQuraCalendar.cs
- WindowsRichEdit.cs
- RemotingSurrogateSelector.cs
- ReadOnlyDataSource.cs
- ByteStreamGeometryContext.cs
- DomainUpDown.cs
- ThousandthOfEmRealPoints.cs
- DataListCommandEventArgs.cs
- ServiceOperationListItemList.cs
- PropertyPathWorker.cs
- SqlAliasesReferenced.cs
- Attributes.cs
- DataKeyArray.cs
- ManagedFilter.cs
- AssociationSet.cs
- WebServiceMethodData.cs
- DateTimeHelper.cs
- WebControl.cs
- ClockGroup.cs
- SpeechEvent.cs
- SMSvcHost.cs
- BasicHttpBinding.cs
- GPPOINT.cs
- DocumentViewerAutomationPeer.cs
- ErrorProvider.cs
- AnnouncementClient.cs
- DataGridTextBox.cs
- MimeMapping.cs
- IntermediatePolicyValidator.cs
- ListMarkerSourceInfo.cs
- Exceptions.cs
- VirtualDirectoryMapping.cs
- LinkAreaEditor.cs
- GeneralTransform.cs
- FixedSOMGroup.cs
- CompareInfo.cs
- RoleManagerSection.cs
- PrefixHandle.cs
- ScopedKnownTypes.cs
- GeneralTransform3DTo2D.cs
- PerfCounters.cs
- LassoSelectionBehavior.cs
- StateMachineHistory.cs
- HttpHandlersSection.cs
- AssemblyInfo.cs
- InputReferenceExpression.cs
- DataObjectFieldAttribute.cs
- TypeCollectionPropertyEditor.cs