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
- BindingContext.cs
- ObjectCloneHelper.cs
- Executor.cs
- DeferredElementTreeState.cs
- ResourceDictionaryCollection.cs
- DbBuffer.cs
- EmptyControlCollection.cs
- ObjectCache.cs
- messageonlyhwndwrapper.cs
- SHA256.cs
- RunClient.cs
- LicenseProviderAttribute.cs
- DataGridBoolColumn.cs
- RadioButton.cs
- _UncName.cs
- IdentifierService.cs
- SiteMapPath.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ResourceWriter.cs
- OpacityConverter.cs
- SQLBinary.cs
- DataBoundControl.cs
- DBDataPermissionAttribute.cs
- HMAC.cs
- MissingManifestResourceException.cs
- VectorCollection.cs
- DataSetMappper.cs
- EditBehavior.cs
- CharacterString.cs
- TaskFileService.cs
- RuleProcessor.cs
- TextTreePropertyUndoUnit.cs
- LockedAssemblyCache.cs
- ItemCollection.cs
- ServiceModelActivationSectionGroup.cs
- AspNetSynchronizationContext.cs
- SettingsProperty.cs
- DataGridBoolColumn.cs
- CodeArrayIndexerExpression.cs
- ProviderUtil.cs
- SectionRecord.cs
- Frame.cs
- D3DImage.cs
- FontSource.cs
- IsolatedStorageFilePermission.cs
- RequestCachingSection.cs
- ComplexType.cs
- QilDataSource.cs
- OracleInternalConnection.cs
- LeaseManager.cs
- XmlUnspecifiedAttribute.cs
- MultipartContentParser.cs
- ObjectNavigationPropertyMapping.cs
- SoapCodeExporter.cs
- DocumentSequenceHighlightLayer.cs
- WebConfigurationManager.cs
- EmptyStringExpandableObjectConverter.cs
- ArcSegment.cs
- Keywords.cs
- Column.cs
- RangeBase.cs
- DefaultSection.cs
- BamlLocalizationDictionary.cs
- GZipObjectSerializer.cs
- TextControlDesigner.cs
- ObjectList.cs
- NoneExcludedImageIndexConverter.cs
- CommandField.cs
- TextLineBreak.cs
- DataStreamFromComStream.cs
- FontDialog.cs
- GridViewEditEventArgs.cs
- LinearGradientBrush.cs
- DirtyTextRange.cs
- ToolstripProfessionalRenderer.cs
- DataBindingExpressionBuilder.cs
- DispatcherSynchronizationContext.cs
- HashAlgorithm.cs
- InvokeHandlers.cs
- Window.cs
- BindingMemberInfo.cs
- AutoResetEvent.cs
- WindowsUpDown.cs
- TextBoxView.cs
- DiscoveryInnerClientAdhocCD1.cs
- TextEndOfParagraph.cs
- CreateUserErrorEventArgs.cs
- processwaithandle.cs
- ImageCollectionCodeDomSerializer.cs
- AppDomainFactory.cs
- ListViewInsertionMark.cs
- DecoderBestFitFallback.cs
- TransformProviderWrapper.cs
- StaticResourceExtension.cs
- DbDeleteCommandTree.cs
- EntityConnectionStringBuilder.cs
- RuntimeEnvironment.cs
- serverconfig.cs
- CollectionMarkupSerializer.cs
- SecureUICommand.cs