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
- TableLayoutPanel.cs
- UnsafeMethods.cs
- DataGridPagerStyle.cs
- ToggleButton.cs
- Adorner.cs
- Paragraph.cs
- TextServicesLoader.cs
- SendSecurityHeaderElement.cs
- Drawing.cs
- HttpCachePolicy.cs
- InstanceDescriptor.cs
- Int64.cs
- RemoteWebConfigurationHost.cs
- CommentEmitter.cs
- BindingCompleteEventArgs.cs
- RegisteredExpandoAttribute.cs
- XmlReader.cs
- PackWebRequest.cs
- DataRelationPropertyDescriptor.cs
- Int64AnimationBase.cs
- BindingManagerDataErrorEventArgs.cs
- ListControlActionList.cs
- RowsCopiedEventArgs.cs
- AdapterUtil.cs
- _BasicClient.cs
- LifetimeServices.cs
- GPPOINTF.cs
- DataControlFieldCollection.cs
- ColumnMapTranslator.cs
- _RequestCacheProtocol.cs
- EditingCoordinator.cs
- OrderablePartitioner.cs
- ObjectDataSourceMethodEditor.cs
- HttpConfigurationSystem.cs
- LinqExpressionNormalizer.cs
- TextContainerHelper.cs
- PackageFilter.cs
- OdbcConnectionOpen.cs
- FormViewDeletedEventArgs.cs
- HttpDictionary.cs
- CompressStream.cs
- MaterialGroup.cs
- UrlMappingsModule.cs
- LoginName.cs
- HeaderElement.cs
- InnerItemCollectionView.cs
- XamlInt32CollectionSerializer.cs
- TypeDelegator.cs
- PackageRelationshipSelector.cs
- SystemWebCachingSectionGroup.cs
- ByteFacetDescriptionElement.cs
- DeviceContexts.cs
- HMACSHA512.cs
- ChannelManager.cs
- Not.cs
- ZipIOExtraFieldZip64Element.cs
- iisPickupDirectory.cs
- AutomationPropertyInfo.cs
- PrintPreviewControl.cs
- CodeSubDirectoriesCollection.cs
- PropertyDescriptorGridEntry.cs
- ResourceBinder.cs
- SuppressIldasmAttribute.cs
- IMembershipProvider.cs
- HuffCodec.cs
- DynamicDocumentPaginator.cs
- Selection.cs
- translator.cs
- SamlAttribute.cs
- QueueException.cs
- IconEditor.cs
- PixelShader.cs
- CapacityStreamGeometryContext.cs
- PrintPreviewGraphics.cs
- Iis7Helper.cs
- XmlSchemaSimpleContent.cs
- cookieexception.cs
- DataTablePropertyDescriptor.cs
- Literal.cs
- TextServicesProperty.cs
- TypeDependencyAttribute.cs
- ComplexPropertyEntry.cs
- SplitterPanel.cs
- MainMenu.cs
- RestHandlerFactory.cs
- SetStoryboardSpeedRatio.cs
- UpdatePanelTrigger.cs
- XNodeNavigator.cs
- QuaternionAnimation.cs
- HostingEnvironment.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ZipFileInfoCollection.cs
- GlyphRun.cs
- WindowsGrip.cs
- ExclusiveNamedPipeTransportManager.cs
- SecurityCriticalDataForSet.cs
- EntityDataReader.cs
- VarRemapper.cs
- GeneralTransform.cs
- WizardSideBarListControlItemEventArgs.cs