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
- DependencyPropertyChangedEventArgs.cs
- StylusPlugin.cs
- SQLBinaryStorage.cs
- DeferredReference.cs
- SchemaCollectionPreprocessor.cs
- SqlUserDefinedAggregateAttribute.cs
- TokenBasedSet.cs
- AspNetCompatibilityRequirementsAttribute.cs
- XhtmlBasicCommandAdapter.cs
- ListItemConverter.cs
- CounterCreationDataCollection.cs
- UpdateCommandGenerator.cs
- PropertyGrid.cs
- TableRowGroup.cs
- DoubleAnimation.cs
- OleDbCommand.cs
- KeyPressEvent.cs
- DataColumnPropertyDescriptor.cs
- CompilerCollection.cs
- TypeDescriptionProviderAttribute.cs
- LabelTarget.cs
- TimersDescriptionAttribute.cs
- CustomAttributeSerializer.cs
- GraphicsContext.cs
- ChangeProcessor.cs
- IdentitySection.cs
- TransformerInfoCollection.cs
- SharedStatics.cs
- CommandDevice.cs
- CacheHelper.cs
- StaticResourceExtension.cs
- Int64AnimationUsingKeyFrames.cs
- DefaultValueTypeConverter.cs
- TagNameToTypeMapper.cs
- UMPAttributes.cs
- ProcessHost.cs
- ExtendedProtectionPolicy.cs
- WhitespaceRule.cs
- AccessKeyManager.cs
- VisualStyleTypesAndProperties.cs
- COM2PictureConverter.cs
- APCustomTypeDescriptor.cs
- COM2EnumConverter.cs
- DPTypeDescriptorContext.cs
- Monitor.cs
- DBSqlParserTableCollection.cs
- ValidationRule.cs
- Int32Collection.cs
- IDispatchConstantAttribute.cs
- HandlerFactoryWrapper.cs
- TargetInvocationException.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- KeyedCollection.cs
- DriveNotFoundException.cs
- ProtocolsConfigurationHandler.cs
- HtmlInputControl.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PageHandlerFactory.cs
- SystemShuttingDownException.cs
- FileUpload.cs
- Activity.cs
- UpDownEvent.cs
- DataBindEngine.cs
- XmlAttributeAttribute.cs
- HashHelper.cs
- SystemInformation.cs
- PackagingUtilities.cs
- Point.cs
- InternalException.cs
- DrawingGroup.cs
- FormClosedEvent.cs
- SizeF.cs
- MbpInfo.cs
- StylusCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- DocumentAutomationPeer.cs
- DesignerAdapterAttribute.cs
- GridViewDeleteEventArgs.cs
- OutgoingWebRequestContext.cs
- IProducerConsumerCollection.cs
- DefaultEventAttribute.cs
- ItemContainerGenerator.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- CompositeScriptReference.cs
- SupportsEventValidationAttribute.cs
- XPathSingletonIterator.cs
- DataGridViewTextBoxEditingControl.cs
- counter.cs
- FileAccessException.cs
- PagePropertiesChangingEventArgs.cs
- XPathItem.cs
- COM2IDispatchConverter.cs
- ToolStripDropDownButton.cs
- HttpMethodAttribute.cs
- IxmlLineInfo.cs
- WebPartZone.cs
- Button.cs
- ProviderConnectionPointCollection.cs
- ComAwareEventInfo.cs
- ClosableStream.cs