Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1 / HMACSHA1.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA1.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA1 : HMAC { // // public constructors // public HMACSHA1 () : this (Utils.GenerateRandom(64)) {} public HMACSHA1 (byte[] key) : this (key, false) {} public HMACSHA1 (byte[] key, bool useManagedSha1) { m_hashName = "SHA1"; if (useManagedSha1) { m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } HashSizeValue = 160; base.InitializeKey(key); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlImplementation.cs
- AnnotationComponentManager.cs
- SecurityHeaderTokenResolver.cs
- TextEffect.cs
- Msec.cs
- CapabilitiesRule.cs
- SrgsOneOf.cs
- SiblingIterators.cs
- EntityDataSourceConfigureObjectContext.cs
- DispatchWrapper.cs
- FontWeight.cs
- DefaultTextStore.cs
- HMACSHA256.cs
- Container.cs
- ScriptReference.cs
- StringSorter.cs
- VerificationAttribute.cs
- GeometryCombineModeValidation.cs
- RegexInterpreter.cs
- SoapIncludeAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- EntityParameter.cs
- DEREncoding.cs
- XmlDocumentFieldSchema.cs
- AdCreatedEventArgs.cs
- WebResourceAttribute.cs
- InputScope.cs
- MulticastNotSupportedException.cs
- UserControl.cs
- EqualityComparer.cs
- SqlStatistics.cs
- StoreAnnotationsMap.cs
- SequentialWorkflowRootDesigner.cs
- RecordConverter.cs
- SizeAnimationBase.cs
- EntitySet.cs
- CursorConverter.cs
- ImpersonationContext.cs
- SQLInt32Storage.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ListViewItem.cs
- ExtenderControl.cs
- SweepDirectionValidation.cs
- XPathMultyIterator.cs
- CaretElement.cs
- MetaTable.cs
- GetWinFXPath.cs
- SelectionRangeConverter.cs
- RemoteWebConfigurationHostServer.cs
- FactoryId.cs
- FastPropertyAccessor.cs
- TryCatchDesigner.xaml.cs
- AccessDataSourceDesigner.cs
- XsdDateTime.cs
- DispatcherHooks.cs
- AutomationPropertyInfo.cs
- DescendantBaseQuery.cs
- Message.cs
- CodeAttributeDeclarationCollection.cs
- ReadOnlyDictionary.cs
- WebColorConverter.cs
- PageTheme.cs
- ConfigurationManagerHelper.cs
- PartialArray.cs
- Icon.cs
- ExpandableObjectConverter.cs
- SoapExtension.cs
- IndexOutOfRangeException.cs
- PenContexts.cs
- NamedPipeDuplicateContext.cs
- EndOfStreamException.cs
- TaskFormBase.cs
- Trace.cs
- DataControlReferenceCollection.cs
- hwndwrapper.cs
- TypeReference.cs
- SourceElementsCollection.cs
- ListManagerBindingsCollection.cs
- TextInfo.cs
- EntityDataSource.cs
- SyndicationSerializer.cs
- FatalException.cs
- RichTextBoxDesigner.cs
- parserscommon.cs
- DocumentApplicationJournalEntry.cs
- TextWriter.cs
- WinFormsUtils.cs
- SymbolUsageManager.cs
- CachingHintValidation.cs
- DocumentSequence.cs
- FlowDocument.cs
- ToolStripSettings.cs
- FacetEnabledSchemaElement.cs
- EDesignUtil.cs
- PageHandlerFactory.cs
- FontNameEditor.cs
- SQLStringStorage.cs
- ActivityExecutionWorkItem.cs
- DirectionalLight.cs
- NetworkStream.cs