Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TemplateAction.cs
- FontInfo.cs
- SplitterCancelEvent.cs
- FaultDesigner.cs
- RuntimeHandles.cs
- SynchronizedDispatch.cs
- FixedLineResult.cs
- MemoryMappedViewStream.cs
- ViewKeyConstraint.cs
- QueryOutputWriter.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- TreeNodeBinding.cs
- GridItemProviderWrapper.cs
- ExtendedProperty.cs
- OleDbPropertySetGuid.cs
- SecondaryIndex.cs
- TileBrush.cs
- BaseDataListComponentEditor.cs
- ObjectCloneHelper.cs
- CodeAssignStatement.cs
- TimeZone.cs
- QualifiedCellIdBoolean.cs
- TargetInvocationException.cs
- XmlSchemaFacet.cs
- PenThreadPool.cs
- HtmlFormParameterWriter.cs
- Animatable.cs
- XmlUTF8TextWriter.cs
- StringUtil.cs
- AvtEvent.cs
- DataTableReader.cs
- PathData.cs
- StreamUpdate.cs
- HyperLinkDesigner.cs
- FontSizeConverter.cs
- Control.cs
- DoubleLink.cs
- SelectionRange.cs
- XmlReaderSettings.cs
- ConfigXmlSignificantWhitespace.cs
- FrameworkTemplate.cs
- SecurityHeaderLayout.cs
- UrlMapping.cs
- EntityStoreSchemaGenerator.cs
- XslCompiledTransform.cs
- XmlSchemaGroup.cs
- MexNamedPipeBindingCollectionElement.cs
- KeyedByTypeCollection.cs
- OutOfMemoryException.cs
- ColorKeyFrameCollection.cs
- ConfigurationPropertyAttribute.cs
- PrincipalPermission.cs
- __ComObject.cs
- GroupItem.cs
- MediaTimeline.cs
- MachineKeySection.cs
- DirectoryInfo.cs
- UIElementCollection.cs
- RijndaelManaged.cs
- AppLevelCompilationSectionCache.cs
- SamlEvidence.cs
- OleCmdHelper.cs
- NumberFunctions.cs
- DataGridCellInfo.cs
- MeshGeometry3D.cs
- ElementMarkupObject.cs
- AbstractExpressions.cs
- StringInfo.cs
- CurrentChangingEventManager.cs
- CacheMemory.cs
- MultipleViewPattern.cs
- StateMachineWorkflowInstance.cs
- UnsafeNativeMethodsPenimc.cs
- TraceHandler.cs
- DispatcherFrame.cs
- Main.cs
- TextTreePropertyUndoUnit.cs
- SqlStream.cs
- SmiRecordBuffer.cs
- XmlSchemaParticle.cs
- ExpressionNormalizer.cs
- IgnoreDeviceFilterElement.cs
- wmiprovider.cs
- ImageUrlEditor.cs
- IISUnsafeMethods.cs
- ExternalDataExchangeClient.cs
- HttpServerUtilityBase.cs
- PluggableProtocol.cs
- RectangleF.cs
- ObjectDisposedException.cs
- Console.cs
- QilInvokeLateBound.cs
- UInt16.cs
- DeferredSelectedIndexReference.cs
- CollectionBase.cs
- WindowsFormsHostAutomationPeer.cs
- SafeLocalMemHandle.cs
- SqlResolver.cs
- HttpCachePolicy.cs
- securitycriticaldata.cs