Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1305376 / 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 FEATURE_CRYPTO if (useManagedSha1) { #endif // FEATURE_CRYPTO m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); #if FEATURE_CRYPTO } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } #endif // FEATURE_CRYPTO HashSizeValue = 160; base.InitializeKey(key); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeToken.cs
- ExtentCqlBlock.cs
- HierarchicalDataSourceControl.cs
- XmlValidatingReader.cs
- _SslState.cs
- StyleXamlParser.cs
- ColumnCollectionEditor.cs
- RecognitionResult.cs
- XPathDocumentNavigator.cs
- Oid.cs
- QuadraticBezierSegment.cs
- Asn1Utilities.cs
- WebFormsRootDesigner.cs
- TypeNameConverter.cs
- HierarchicalDataBoundControl.cs
- EncoderExceptionFallback.cs
- StatusStrip.cs
- IntellisenseTextBox.designer.cs
- CriticalHandle.cs
- IntPtr.cs
- MarshalByValueComponent.cs
- WebPartVerb.cs
- DataIdProcessor.cs
- PerformanceCounter.cs
- EntityCommandDefinition.cs
- DesignerSerializerAttribute.cs
- AnnotationComponentChooser.cs
- StorageBasedPackageProperties.cs
- ApplyHostConfigurationBehavior.cs
- ReflectionTypeLoadException.cs
- DeflateEmulationStream.cs
- OrderingExpression.cs
- EventlogProvider.cs
- CatalogPart.cs
- ValuePattern.cs
- StandardBindingReliableSessionElement.cs
- MenuItemBindingCollection.cs
- PeerApplication.cs
- DataGridViewButtonColumn.cs
- ModelPerspective.cs
- Attributes.cs
- SynchronizedInputHelper.cs
- ConfigurationStrings.cs
- TextServicesCompartmentContext.cs
- WindowsAuthenticationModule.cs
- nulltextcontainer.cs
- ELinqQueryState.cs
- SqlDataSourceRefreshSchemaForm.cs
- RuleSettingsCollection.cs
- BinaryObjectReader.cs
- DataChangedEventManager.cs
- TdsParserSafeHandles.cs
- Path.cs
- Grant.cs
- SerializationSectionGroup.cs
- DataStreamFromComStream.cs
- Size3D.cs
- BmpBitmapEncoder.cs
- SHA256.cs
- AdCreatedEventArgs.cs
- DiagnosticSection.cs
- CodeTryCatchFinallyStatement.cs
- CategoryAttribute.cs
- ExceptionCollection.cs
- HttpCachePolicy.cs
- WebBrowserSiteBase.cs
- ElementNotAvailableException.cs
- PromptStyle.cs
- ProcessHostServerConfig.cs
- XPathMultyIterator.cs
- FrameworkTemplate.cs
- SplitContainerDesigner.cs
- DataGridViewBindingCompleteEventArgs.cs
- SymbolTable.cs
- SafeEventLogReadHandle.cs
- BulletedListDesigner.cs
- Delegate.cs
- ColumnMapTranslator.cs
- FontResourceCache.cs
- webproxy.cs
- NullExtension.cs
- GuidConverter.cs
- bindurihelper.cs
- WindowsGraphics.cs
- ScriptingProfileServiceSection.cs
- TransformPatternIdentifiers.cs
- BaseAppDomainProtocolHandler.cs
- DictionaryContent.cs
- Console.cs
- InvalidWorkflowException.cs
- StyleSheetRefUrlEditor.cs
- UdpChannelListener.cs
- ItemCheckedEvent.cs
- PageThemeBuildProvider.cs
- ReadOnlyDataSource.cs
- PolicyDesigner.cs
- StringFreezingAttribute.cs
- MoveSizeWinEventHandler.cs
- SSmlParser.cs
- ReceiveSecurityHeaderElementManager.cs