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
- QilFunction.cs
- RichTextBoxConstants.cs
- JournalNavigationScope.cs
- counter.cs
- HttpModule.cs
- WeakHashtable.cs
- WS2007FederationHttpBindingCollectionElement.cs
- WebPartHeaderCloseVerb.cs
- MissingSatelliteAssemblyException.cs
- XmlArrayItemAttribute.cs
- PolyLineSegment.cs
- StrokeSerializer.cs
- Page.cs
- _DynamicWinsockMethods.cs
- PropertyDescriptorComparer.cs
- EventLog.cs
- IWorkflowDebuggerService.cs
- TripleDESCryptoServiceProvider.cs
- AsymmetricCryptoHandle.cs
- XmlArrayItemAttribute.cs
- GridViewRowPresenter.cs
- RegexRunner.cs
- InputGestureCollection.cs
- DataGridViewImageCell.cs
- FocusTracker.cs
- DbProviderFactory.cs
- EntityContainerAssociationSet.cs
- ExpressionPrefixAttribute.cs
- MaterialGroup.cs
- AppDomainManager.cs
- GPRECT.cs
- SqlBooleanMismatchVisitor.cs
- FileEnumerator.cs
- ThreadExceptionDialog.cs
- HtmlInputRadioButton.cs
- WindowsServiceCredential.cs
- SvcMapFile.cs
- TagPrefixCollection.cs
- SiteMapNodeItem.cs
- _SingleItemRequestCache.cs
- RegexStringValidatorAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- ByteConverter.cs
- AlternationConverter.cs
- ConfigViewGenerator.cs
- ProfileProvider.cs
- AutomationEventArgs.cs
- NameTable.cs
- TableLayout.cs
- ElementsClipboardData.cs
- TargetException.cs
- StrongTypingException.cs
- NetSectionGroup.cs
- ConstraintCollection.cs
- ActivityCollectionMarkupSerializer.cs
- OperatingSystemVersionCheck.cs
- DrawingGroupDrawingContext.cs
- uribuilder.cs
- BridgeDataReader.cs
- DependencyPropertyChangedEventArgs.cs
- FilteredXmlReader.cs
- DataServiceProcessingPipeline.cs
- FixUp.cs
- DesignerAttribute.cs
- DataServiceRequest.cs
- Span.cs
- HttpFileCollectionBase.cs
- TrackingWorkflowEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- HttpModuleCollection.cs
- StreamGeometry.cs
- Popup.cs
- Select.cs
- FontInfo.cs
- ConfigurationManagerHelper.cs
- GlobalItem.cs
- ECDiffieHellman.cs
- Paragraph.cs
- smtppermission.cs
- SingleSelectRootGridEntry.cs
- ByteRangeDownloader.cs
- DbMetaDataColumnNames.cs
- AssemblyAttributes.cs
- FragmentQueryProcessor.cs
- HotSpotCollection.cs
- SoapExtensionTypeElement.cs
- ListViewTableCell.cs
- BinaryFormatterSinks.cs
- SimpleTypeResolver.cs
- HttpFileCollection.cs
- MultipleCopiesCollection.cs
- EditorBrowsableAttribute.cs
- SoapIncludeAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- HtmlFormWrapper.cs
- ContentType.cs
- ToolTipAutomationPeer.cs
- WebZone.cs
- SmiMetaData.cs
- XmlEntityReference.cs