Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SpellerStatusTable.cs
- InputMethod.cs
- EnvelopedPkcs7.cs
- SpotLight.cs
- MouseActionValueSerializer.cs
- ReaderWriterLock.cs
- SqlFacetAttribute.cs
- EventLogEntry.cs
- AccessedThroughPropertyAttribute.cs
- TableCellCollection.cs
- ColumnHeaderCollectionEditor.cs
- DataViewManagerListItemTypeDescriptor.cs
- HelpInfo.cs
- SoapReflectionImporter.cs
- AudienceUriMode.cs
- activationcontext.cs
- HttpHostedTransportConfiguration.cs
- DesignerForm.cs
- User.cs
- DbBuffer.cs
- SettingsPropertyValue.cs
- ExpressionHelper.cs
- SchemaTypeEmitter.cs
- ButtonChrome.cs
- SqlFileStream.cs
- ClientBuildManager.cs
- CodeMethodMap.cs
- ToolboxItemFilterAttribute.cs
- CopyOfAction.cs
- CheckBoxPopupAdapter.cs
- LogicalTreeHelper.cs
- ConfigurationConverterBase.cs
- MenuEventArgs.cs
- SkipQueryOptionExpression.cs
- HttpStreamXmlDictionaryWriter.cs
- SafeRegistryKey.cs
- ActivityDesignerResources.cs
- EntityContainerRelationshipSet.cs
- HtmlControlPersistable.cs
- OracleString.cs
- CompilationSection.cs
- InvalidCommandTreeException.cs
- StorageFunctionMapping.cs
- Attributes.cs
- ToolStripManager.cs
- SchemaElementDecl.cs
- WebPartHeaderCloseVerb.cs
- LiteralControl.cs
- SEHException.cs
- AutomationProperties.cs
- IChannel.cs
- PropertyBuilder.cs
- ApplicationDirectoryMembershipCondition.cs
- SQLMembershipProvider.cs
- DBParameter.cs
- GetPageCompletedEventArgs.cs
- Dynamic.cs
- ClientCultureInfo.cs
- PerfService.cs
- CompositeDispatchFormatter.cs
- GiveFeedbackEventArgs.cs
- AdRotator.cs
- CellTreeNode.cs
- VBIdentifierTrimConverter.cs
- ThicknessAnimationBase.cs
- OpenTypeCommon.cs
- BaseProcessor.cs
- TextSearch.cs
- XsdBuilder.cs
- UIAgentCrashedException.cs
- WebPartRestoreVerb.cs
- DataGridTablesFactory.cs
- MultiBinding.cs
- EastAsianLunisolarCalendar.cs
- Page.cs
- SrgsRulesCollection.cs
- ActivityExecutionContextCollection.cs
- CollectionTraceRecord.cs
- SQLBinaryStorage.cs
- DashStyle.cs
- CodeSubDirectory.cs
- WebProxyScriptElement.cs
- RequestReplyCorrelator.cs
- OleDbRowUpdatingEvent.cs
- Scene3D.cs
- ToolStripContentPanelRenderEventArgs.cs
- DbProviderConfigurationHandler.cs
- ZipIOCentralDirectoryFileHeader.cs
- ModuleElement.cs
- DataSourceCacheDurationConverter.cs
- DataSvcMapFileSerializer.cs
- LineSegment.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ParallelLoopState.cs
- KeyPressEvent.cs
- Color.cs
- SqlErrorCollection.cs
- RuntimeWrappedException.cs
- BinaryReader.cs
- CollectionExtensions.cs