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
- Point.cs
- TraceRecords.cs
- SiteMapNodeItem.cs
- DeferredTextReference.cs
- SymbolPair.cs
- LogPolicy.cs
- XmlBoundElement.cs
- InitializeCorrelation.cs
- XmlWrappingReader.cs
- ResourceProviderFactory.cs
- SoapHttpTransportImporter.cs
- DropDownList.cs
- GeometryGroup.cs
- newinstructionaction.cs
- ColumnMapVisitor.cs
- SortDescriptionCollection.cs
- VisualStyleRenderer.cs
- CodeExporter.cs
- VideoDrawing.cs
- HashCoreRequest.cs
- TrueReadOnlyCollection.cs
- ReachDocumentReferenceCollectionSerializer.cs
- PropertyIdentifier.cs
- ListViewSortEventArgs.cs
- EndpointDiscoveryBehavior.cs
- StrokeDescriptor.cs
- DataBoundControlAdapter.cs
- configsystem.cs
- ResourcesBuildProvider.cs
- WebPartChrome.cs
- x509utils.cs
- isolationinterop.cs
- ConfigurationManagerInternalFactory.cs
- PropertyRecord.cs
- SQLGuid.cs
- WindowsFormsHostAutomationPeer.cs
- CompleteWizardStep.cs
- QueryStringParameter.cs
- MasterPage.cs
- StrokeNodeData.cs
- BufferedWebEventProvider.cs
- LazyInitializer.cs
- CompressEmulationStream.cs
- ExpressionVisitor.cs
- IsolatedStoragePermission.cs
- BufferedOutputAsyncStream.cs
- AuthenticationSection.cs
- NamespaceExpr.cs
- XmlSchemaSubstitutionGroup.cs
- OdbcConnectionPoolProviderInfo.cs
- ObjectDataSourceDisposingEventArgs.cs
- Peer.cs
- ServiceReference.cs
- VerticalAlignConverter.cs
- CharacterHit.cs
- XMLSchema.cs
- TimelineGroup.cs
- PerspectiveCamera.cs
- TransformPattern.cs
- BrowserDefinitionCollection.cs
- CharacterMetricsDictionary.cs
- ConnectionStringSettings.cs
- MetadataCache.cs
- OleDbDataAdapter.cs
- ItemMap.cs
- InkCanvasSelection.cs
- DataGridColumnCollection.cs
- NativeMethods.cs
- _LocalDataStore.cs
- SingleConverter.cs
- UserInitiatedNavigationPermission.cs
- FontCollection.cs
- XmlSerializerFactory.cs
- EventPrivateKey.cs
- MonikerBuilder.cs
- DataSourceSelectArguments.cs
- FormViewRow.cs
- BypassElementCollection.cs
- DoubleUtil.cs
- WindowsIPAddress.cs
- KerberosSecurityTokenProvider.cs
- DataDocumentXPathNavigator.cs
- __Filters.cs
- StaticFileHandler.cs
- DesignTimeValidationFeature.cs
- DrawingBrush.cs
- FileChangesMonitor.cs
- OrderedDictionary.cs
- Msmq4SubqueuePoisonHandler.cs
- ExtensionQuery.cs
- CodeDomComponentSerializationService.cs
- UserValidatedEventArgs.cs
- ColorPalette.cs
- SearchForVirtualItemEventArgs.cs
- ScaleTransform.cs
- BatchWriter.cs
- Point3D.cs
- FormatterConverter.cs
- IpcManager.cs
- PreDigestedSignedInfo.cs