Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewContainer.cs
- WindowsGraphics.cs
- AutoFocusStyle.xaml.cs
- mongolianshape.cs
- ApplySecurityAndSendAsyncResult.cs
- EntityDataSourceDataSelectionPanel.cs
- RoleManagerModule.cs
- DoubleStorage.cs
- WebPartVerb.cs
- PropertyPath.cs
- TextFormatterHost.cs
- XhtmlBasicCalendarAdapter.cs
- CharacterMetrics.cs
- WindowsHyperlink.cs
- SqlColumnizer.cs
- RowToParametersTransformer.cs
- XPathScanner.cs
- MarkerProperties.cs
- XPathCompiler.cs
- SoapFormatExtensions.cs
- ParseElement.cs
- X509Extension.cs
- CultureTableRecord.cs
- WinFormsSecurity.cs
- HttpCacheParams.cs
- GPPOINT.cs
- DocumentViewer.cs
- Registry.cs
- ServiceDescription.cs
- MetabaseServerConfig.cs
- CodeLabeledStatement.cs
- ReadOnlyPropertyMetadata.cs
- ActiveDocumentEvent.cs
- ListenerElementsCollection.cs
- GlyphCache.cs
- SystemIcmpV6Statistics.cs
- FontEmbeddingManager.cs
- DoubleLink.cs
- SoapObjectInfo.cs
- EnumerableCollectionView.cs
- HttpRequestCacheValidator.cs
- CompilationUtil.cs
- PersistenceProviderBehavior.cs
- Figure.cs
- MenuTracker.cs
- SchemaImporter.cs
- SelectedDatesCollection.cs
- MainMenu.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- newinstructionaction.cs
- DesignerContextDescriptor.cs
- TemplateControlParser.cs
- HashHelpers.cs
- PresentationUIStyleResources.cs
- FillRuleValidation.cs
- DocumentationServerProtocol.cs
- ADRoleFactory.cs
- StatusStrip.cs
- XmlSchemaAnnotation.cs
- SingleQueryOperator.cs
- BaseParagraph.cs
- ToolBar.cs
- CfgParser.cs
- FontStretchConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- InfoCardProofToken.cs
- TdsValueSetter.cs
- EntityStoreSchemaGenerator.cs
- DbConnectionFactory.cs
- ValueTypeFixupInfo.cs
- _Win32.cs
- StaticTextPointer.cs
- MappingModelBuildProvider.cs
- ConnectionManagementElementCollection.cs
- TransformBlockRequest.cs
- FileDialog.cs
- GregorianCalendar.cs
- CodeVariableDeclarationStatement.cs
- DnsEndPoint.cs
- TextEncodedRawTextWriter.cs
- AuthenticationService.cs
- UserPreferenceChangedEventArgs.cs
- SoapConverter.cs
- AsyncWaitHandle.cs
- MsmqIntegrationMessagePool.cs
- ParallelEnumerableWrapper.cs
- Html32TextWriter.cs
- bindurihelper.cs
- Memoizer.cs
- XmlAttributeCache.cs
- XXXOnTypeBuilderInstantiation.cs
- Rect3DConverter.cs
- KerberosRequestorSecurityToken.cs
- ColumnResizeAdorner.cs
- Ref.cs
- UnionExpr.cs
- Operators.cs
- PropertyRecord.cs
- TypeDependencyAttribute.cs
- TemplateComponentConnector.cs