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
- RadioButton.cs
- CodeExpressionStatement.cs
- FrameworkElementAutomationPeer.cs
- PasswordTextContainer.cs
- TemplatePagerField.cs
- EqualityComparer.cs
- PropertyReferenceSerializer.cs
- ClientBuildManager.cs
- QueryOutputWriter.cs
- ParserStreamGeometryContext.cs
- SR.cs
- Connector.cs
- ComponentCommands.cs
- _SSPIWrapper.cs
- QueryExpression.cs
- Missing.cs
- Profiler.cs
- DiagnosticEventProvider.cs
- XmlAttributeOverrides.cs
- HttpBrowserCapabilitiesWrapper.cs
- SkipStoryboardToFill.cs
- XmlCodeExporter.cs
- BooleanExpr.cs
- SessionPageStatePersister.cs
- DataGridViewCellStyle.cs
- SharedPerformanceCounter.cs
- XmlDomTextWriter.cs
- ScriptingRoleServiceSection.cs
- StorageConditionPropertyMapping.cs
- ThreadPool.cs
- JournalNavigationScope.cs
- EntityDataSourceWrapperCollection.cs
- WebPartDescription.cs
- JsonReader.cs
- ConfigXmlSignificantWhitespace.cs
- Page.cs
- RemoteWebConfigurationHostServer.cs
- CreateUserWizard.cs
- ItemsPanelTemplate.cs
- LambdaExpression.cs
- TypeNameConverter.cs
- ProcessingInstructionAction.cs
- WriteStateInfoBase.cs
- CodeTypeDelegate.cs
- CollectionType.cs
- DropTarget.cs
- BooleanStorage.cs
- MaterialGroup.cs
- ClientEventManager.cs
- TypeConverterAttribute.cs
- SignerInfo.cs
- TextEffect.cs
- TreeIterator.cs
- PolyQuadraticBezierSegment.cs
- SchemaNamespaceManager.cs
- ContainsRowNumberChecker.cs
- AliasGenerator.cs
- NamespaceDecl.cs
- WebResourceUtil.cs
- TransformedBitmap.cs
- ButtonChrome.cs
- SHA1Cng.cs
- TextServicesHost.cs
- TagMapCollection.cs
- Package.cs
- AnnotationService.cs
- _ConnectionGroup.cs
- COM2FontConverter.cs
- HtmlElement.cs
- ListViewTableCell.cs
- ServicesSection.cs
- Point3DConverter.cs
- DocumentPageHost.cs
- AnimatedTypeHelpers.cs
- IndexedString.cs
- TranslateTransform.cs
- ProtocolsConfiguration.cs
- ListenerServiceInstallComponent.cs
- FamilyMap.cs
- ConfigXmlElement.cs
- MoveSizeWinEventHandler.cs
- ThreadStateException.cs
- DataBoundControlAdapter.cs
- TableItemPattern.cs
- BindingOperations.cs
- SamlSubjectStatement.cs
- PrintPreviewDialog.cs
- oledbmetadatacolumnnames.cs
- RelativeSource.cs
- RequestChannel.cs
- GridViewRowPresenter.cs
- SamlAuthenticationStatement.cs
- AnonymousIdentificationSection.cs
- TextEditor.cs
- NgenServicingAttributes.cs
- querybuilder.cs
- CodeAttributeDeclaration.cs
- DataGridViewTextBoxColumn.cs
- SiteMapDesignerDataSourceView.cs
- RequestCachePolicy.cs