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
- UIElement3D.cs
- FileUpload.cs
- PrimitiveSchema.cs
- VerticalAlignConverter.cs
- Constraint.cs
- RelationshipType.cs
- StyleReferenceConverter.cs
- BitmapMetadataBlob.cs
- EmbeddedMailObject.cs
- RandomDelayQueuedSendsAsyncResult.cs
- DoubleAnimationUsingKeyFrames.cs
- ExpandCollapseIsCheckedConverter.cs
- HashSetDebugView.cs
- StorageMappingFragment.cs
- SafeRightsManagementEnvironmentHandle.cs
- DbConnectionPoolOptions.cs
- prompt.cs
- NumberFormatter.cs
- SqlAggregateChecker.cs
- DataGridViewBindingCompleteEventArgs.cs
- DataGridViewColumnConverter.cs
- EntitySet.cs
- InstanceDataCollectionCollection.cs
- errorpatternmatcher.cs
- OleDbPropertySetGuid.cs
- AsymmetricKeyExchangeFormatter.cs
- ColorConvertedBitmapExtension.cs
- TypeDescriptionProvider.cs
- PreloadedPackages.cs
- GeometryModel3D.cs
- PropertyChangeTracker.cs
- SingleTagSectionHandler.cs
- Vector3DAnimation.cs
- DescriptionAttribute.cs
- FileDialogCustomPlace.cs
- PriorityBindingExpression.cs
- ProxyWebPart.cs
- Msmq4PoisonHandler.cs
- PeerConnector.cs
- ReaderWriterLockSlim.cs
- HierarchicalDataTemplate.cs
- Visual3D.cs
- XpsFont.cs
- LineGeometry.cs
- HotSpot.cs
- ErrorHandler.cs
- GcHandle.cs
- FreezableOperations.cs
- IPipelineRuntime.cs
- BitmapEditor.cs
- SqlProviderUtilities.cs
- ViewCellSlot.cs
- XhtmlTextWriter.cs
- ToolStripItemDesigner.cs
- CopyNamespacesAction.cs
- DataReaderContainer.cs
- MsmqIntegrationOutputChannel.cs
- SqlPersonalizationProvider.cs
- ParameterCollection.cs
- NumericExpr.cs
- HiddenField.cs
- GlobalAclOperationRequirement.cs
- XmlDictionaryReaderQuotas.cs
- MetadataUtilsSmi.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BuildProviderCollection.cs
- StretchValidation.cs
- RadioButtonRenderer.cs
- ConfigXmlElement.cs
- Identifier.cs
- JavaScriptObjectDeserializer.cs
- HttpModuleCollection.cs
- ColumnClickEvent.cs
- ServiceEndpointCollection.cs
- SchemaContext.cs
- ExtenderControl.cs
- LayoutUtils.cs
- DynamicValidator.cs
- _IPv4Address.cs
- Binding.cs
- WindowsGraphicsCacheManager.cs
- CapacityStreamGeometryContext.cs
- WindowsScroll.cs
- HttpClientProtocol.cs
- ScriptingRoleServiceSection.cs
- DataShape.cs
- MetabaseReader.cs
- FixedBufferAttribute.cs
- DeflateEmulationStream.cs
- Matrix.cs
- StrokeSerializer.cs
- WorkerRequest.cs
- FixUp.cs
- ProjectionAnalyzer.cs
- PerformanceCounterCategory.cs
- ScriptRegistrationManager.cs
- TextServicesContext.cs
- ClientScriptItemCollection.cs
- SourceCollection.cs
- InstanceDataCollection.cs