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
- WmlImageAdapter.cs
- TextOnlyOutput.cs
- InputProcessorProfiles.cs
- CodeIterationStatement.cs
- DataGridItemCollection.cs
- BoundPropertyEntry.cs
- GeneratedContractType.cs
- AttachmentService.cs
- ForEachAction.cs
- SecurityChannelFaultConverter.cs
- Attributes.cs
- DictionarySectionHandler.cs
- FileDataSource.cs
- QilValidationVisitor.cs
- _DomainName.cs
- TextParagraphProperties.cs
- FlowLayout.cs
- XmlQueryOutput.cs
- VarRefManager.cs
- DivideByZeroException.cs
- SendKeys.cs
- BooleanSwitch.cs
- FileInfo.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- DelegateArgumentValue.cs
- CustomCategoryAttribute.cs
- BaseParagraph.cs
- WinEventTracker.cs
- PrintSchema.cs
- StoreItemCollection.Loader.cs
- PeerInputChannel.cs
- SrgsSemanticInterpretationTag.cs
- GeneralTransform2DTo3DTo2D.cs
- ContextStack.cs
- HotSpotCollection.cs
- NaturalLanguageHyphenator.cs
- TableLayoutStyle.cs
- ResourceAssociationTypeEnd.cs
- CodeTypeReferenceExpression.cs
- CustomGrammar.cs
- MouseButton.cs
- TableLayoutSettings.cs
- ActiveXHelper.cs
- dtdvalidator.cs
- CharConverter.cs
- SqlUdtInfo.cs
- TextEffectResolver.cs
- HttpTransportSecurity.cs
- FigureParagraph.cs
- StringAnimationBase.cs
- WebPartCloseVerb.cs
- TextRangeEditLists.cs
- DesigntimeLicenseContext.cs
- SmiMetaData.cs
- ServiceMetadataPublishingElement.cs
- RelationshipDetailsCollection.cs
- unitconverter.cs
- SpeechRecognizer.cs
- ParserContext.cs
- DbProviderFactories.cs
- TextParagraphProperties.cs
- RbTree.cs
- CodePageEncoding.cs
- AsyncContentLoadedEventArgs.cs
- WebHttpSecurityElement.cs
- FieldToken.cs
- InternalConfigHost.cs
- XmlWriterSettings.cs
- ThreadStartException.cs
- DesignerCapabilities.cs
- ResourceAssociationSet.cs
- KnownColorTable.cs
- Point3DCollectionConverter.cs
- UniqueID.cs
- ClientBuildManagerCallback.cs
- Vector3D.cs
- AsymmetricCryptoHandle.cs
- UInt64Converter.cs
- DbProviderFactories.cs
- PortCache.cs
- TreeNodeSelectionProcessor.cs
- ResourceDisplayNameAttribute.cs
- ItemContainerPattern.cs
- PersonalizationState.cs
- NodeInfo.cs
- Int32RectValueSerializer.cs
- safemediahandle.cs
- BinaryFormatter.cs
- WindowsToolbarItemAsMenuItem.cs
- RequestTimeoutManager.cs
- StopStoryboard.cs
- DebuggerAttributes.cs
- XslException.cs
- Timer.cs
- _FixedSizeReader.cs
- EncryptedData.cs
- InstancePersistenceEvent.cs
- KeyTimeConverter.cs
- XmlAttribute.cs
- GenerateHelper.cs