Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PolicyStatement.cs
- Internal.cs
- FieldToken.cs
- UriTemplateEquivalenceComparer.cs
- Msmq.cs
- XPathItem.cs
- InvokeWebServiceDesigner.cs
- TaskExceptionHolder.cs
- ControlDesigner.cs
- IUnknownConstantAttribute.cs
- AccessedThroughPropertyAttribute.cs
- SessionEndingCancelEventArgs.cs
- EdmComplexTypeAttribute.cs
- GeneralTransform3DGroup.cs
- BackgroundFormatInfo.cs
- ServiceReference.cs
- CustomErrorsSection.cs
- ContextQuery.cs
- PresentationAppDomainManager.cs
- RectAnimation.cs
- SuppressMessageAttribute.cs
- TableRow.cs
- XmlNodeReader.cs
- RequestStatusBarUpdateEventArgs.cs
- infer.cs
- CounterCreationDataCollection.cs
- ToolStripItemEventArgs.cs
- PeerDuplexChannel.cs
- NameTable.cs
- ObjectStateManagerMetadata.cs
- XmlSchemaAttribute.cs
- PersonalizationState.cs
- TargetControlTypeAttribute.cs
- PenThread.cs
- PermissionToken.cs
- NegatedCellConstant.cs
- MSAANativeProvider.cs
- LogicalTreeHelper.cs
- GatewayDefinition.cs
- ListBoxAutomationPeer.cs
- baseaxisquery.cs
- WorkflowOperationBehavior.cs
- SmiConnection.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ControlParser.cs
- ExceptionValidationRule.cs
- CodeGeneratorAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebScriptClientGenerator.cs
- TextTreeUndo.cs
- DataKey.cs
- NavigationPropertyEmitter.cs
- BamlLocalizableResourceKey.cs
- GridViewDeletedEventArgs.cs
- TCPListener.cs
- AndCondition.cs
- WinEventHandler.cs
- Pair.cs
- ByValueEqualityComparer.cs
- IntellisenseTextBox.designer.cs
- XmlNamespaceMapping.cs
- TransportationConfigurationTypeInstallComponent.cs
- BinaryOperationBinder.cs
- NamespaceExpr.cs
- PriorityQueue.cs
- DialogResultConverter.cs
- XmlSchemaAttributeGroupRef.cs
- HostingEnvironmentWrapper.cs
- SqlAliasesReferenced.cs
- ZoomPercentageConverter.cs
- QilLiteral.cs
- IsolatedStorageFile.cs
- FocusWithinProperty.cs
- TextBox.cs
- Mappings.cs
- MessageSecurityOverMsmq.cs
- CodeNamespaceImport.cs
- Crc32.cs
- SafeTimerHandle.cs
- CollectionViewGroupRoot.cs
- ChooseAction.cs
- IIS7WorkerRequest.cs
- MessageVersion.cs
- DataGridViewIntLinkedList.cs
- BuildManagerHost.cs
- RectangleHotSpot.cs
- WebPartEditorOkVerb.cs
- UidManager.cs
- TCEAdapterGenerator.cs
- SiteMapHierarchicalDataSourceView.cs
- Constraint.cs
- SettingsAttributes.cs
- PaginationProgressEventArgs.cs
- EncodingInfo.cs
- BaseAsyncResult.cs
- XhtmlTextWriter.cs
- DeclarationUpdate.cs
- TypeLibConverter.cs
- DoubleAnimation.cs
- Attachment.cs