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
- FormsAuthenticationCredentials.cs
- CryptoApi.cs
- SingleSelectRootGridEntry.cs
- LinqDataSourceEditData.cs
- ComboBox.cs
- WorkflowInstanceExtensionProvider.cs
- DeviceSpecificDialogCachedState.cs
- TextBoxBase.cs
- ReferentialConstraint.cs
- PagesSection.cs
- DecoderReplacementFallback.cs
- BevelBitmapEffect.cs
- DataRecordInternal.cs
- CodeDomSerializerException.cs
- AlgoModule.cs
- WrappedReader.cs
- XmlBinaryReader.cs
- SerializationEventsCache.cs
- WindowsServiceElement.cs
- RC2.cs
- OleDbRowUpdatedEvent.cs
- MissingSatelliteAssemblyException.cs
- PageRanges.cs
- Thread.cs
- InheritanceAttribute.cs
- HttpChannelHelper.cs
- ToolBarButtonClickEvent.cs
- JumpPath.cs
- DataConnectionHelper.cs
- IgnoreSectionHandler.cs
- OdbcEnvironmentHandle.cs
- QueryRewriter.cs
- HttpCacheVary.cs
- MimeXmlImporter.cs
- SecurityContext.cs
- HtmlInputReset.cs
- XmlWriterDelegator.cs
- UnsafeNativeMethods.cs
- RefExpr.cs
- EncodingTable.cs
- ValidationEventArgs.cs
- BitmapEffect.cs
- DesignerSerializerAttribute.cs
- ListBoxAutomationPeer.cs
- EditorPartCollection.cs
- MessageBox.cs
- TextPointer.cs
- Rect3D.cs
- InstancePersistenceException.cs
- DataException.cs
- DataGridViewSelectedCellCollection.cs
- LinkArea.cs
- TreeView.cs
- UDPClient.cs
- ToggleButtonAutomationPeer.cs
- PeerConnector.cs
- DbParameterHelper.cs
- ObjectNotFoundException.cs
- TextAdaptor.cs
- BindToObject.cs
- StringFunctions.cs
- UnsafeNativeMethodsMilCoreApi.cs
- WindowHideOrCloseTracker.cs
- TreeViewDesigner.cs
- StubHelpers.cs
- XmlUtil.cs
- InvokeMethod.cs
- DataServiceException.cs
- _UriSyntax.cs
- EntityStoreSchemaGenerator.cs
- WizardStepBase.cs
- GZipStream.cs
- EntityDataSourceChangedEventArgs.cs
- UpdateExpressionVisitor.cs
- EventItfInfo.cs
- Tracking.cs
- ConfigurationLockCollection.cs
- WebGetAttribute.cs
- ComponentEvent.cs
- PrimitiveType.cs
- ProxyWebPartConnectionCollection.cs
- CustomAttribute.cs
- WebPartExportVerb.cs
- MobileErrorInfo.cs
- DesignerDataSourceView.cs
- BaseCodeDomTreeGenerator.cs
- CustomTypeDescriptor.cs
- XmlEntity.cs
- PhonemeConverter.cs
- EpmSyndicationContentDeSerializer.cs
- WebPartDisplayModeCollection.cs
- CodeVariableReferenceExpression.cs
- WebServiceFaultDesigner.cs
- TTSVoice.cs
- TypedTableHandler.cs
- GridItemProviderWrapper.cs
- HtmlAnchor.cs
- BrowserCapabilitiesCodeGenerator.cs
- ItemsPanelTemplate.cs
- BamlResourceDeserializer.cs