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
- ReturnEventArgs.cs
- Propagator.JoinPropagator.cs
- DistributedTransactionPermission.cs
- CertificateReferenceElement.cs
- ErrorFormatterPage.cs
- ToolStripSettings.cs
- DrawToolTipEventArgs.cs
- TextFormatterHost.cs
- XpsResource.cs
- ElementHostAutomationPeer.cs
- HostProtectionPermission.cs
- SqlDataSourceParameterParser.cs
- InkPresenterAutomationPeer.cs
- RenderContext.cs
- PrePostDescendentsWalker.cs
- ValueTypeFixupInfo.cs
- ConsoleKeyInfo.cs
- SqlGatherConsumedAliases.cs
- XmlQueryType.cs
- ObjectSet.cs
- DataGridView.cs
- IndexedGlyphRun.cs
- RightsManagementProvider.cs
- EditorAttributeInfo.cs
- UniformGrid.cs
- TextWriterTraceListener.cs
- DataConnectionHelper.cs
- DataGridViewBand.cs
- ColumnPropertiesGroup.cs
- SerializationStore.cs
- CustomValidator.cs
- IndexedWhereQueryOperator.cs
- HtmlTitle.cs
- BitFlagsGenerator.cs
- XmlILModule.cs
- IriParsingElement.cs
- Soap.cs
- sqlstateclientmanager.cs
- InputBuffer.cs
- PhysicalAddress.cs
- UniqueIdentifierService.cs
- DocumentApplicationJournalEntry.cs
- precedingsibling.cs
- MenuCommand.cs
- ConnectorDragDropGlyph.cs
- WebBrowserBase.cs
- XmlParser.cs
- BrowserDefinitionCollection.cs
- ISAPIWorkerRequest.cs
- IIS7UserPrincipal.cs
- ValueQuery.cs
- XmlEntity.cs
- ShaderRenderModeValidation.cs
- Confirm.cs
- ClientTarget.cs
- AuthenticationModeHelper.cs
- TextElementCollection.cs
- DataColumnMapping.cs
- AuthorizationRuleCollection.cs
- PlainXmlWriter.cs
- ToolStripPanelSelectionBehavior.cs
- XDeferredAxisSource.cs
- WebHttpBindingElement.cs
- PasswordBox.cs
- OutArgument.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewRowCollection.cs
- ImageAutomationPeer.cs
- wgx_exports.cs
- KnownTypesHelper.cs
- Run.cs
- _LocalDataStoreMgr.cs
- OutputScopeManager.cs
- ExclusiveHandle.cs
- GACIdentityPermission.cs
- Timer.cs
- SingleStorage.cs
- Form.cs
- SqlCacheDependencyDatabase.cs
- ScriptComponentDescriptor.cs
- EntityCommandCompilationException.cs
- BreakRecordTable.cs
- ReadOnlyCollectionBuilder.cs
- DataSourceView.cs
- ProgressiveCrcCalculatingStream.cs
- SecurityPermission.cs
- AccessDataSource.cs
- RowsCopiedEventArgs.cs
- ExecutionEngineException.cs
- _HeaderInfoTable.cs
- DesignerHelpers.cs
- PerformanceCounterCategory.cs
- StylusEditingBehavior.cs
- Inline.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CodeRegionDirective.cs
- EnumUnknown.cs
- ProxyElement.cs
- SkipStoryboardToFill.cs
- SafeRightsManagementHandle.cs