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
- __ComObject.cs
- DbBuffer.cs
- WsdlInspector.cs
- JsonDeserializer.cs
- ButtonFieldBase.cs
- InertiaRotationBehavior.cs
- SchemaImporter.cs
- BitmapMetadataBlob.cs
- DataGridLinkButton.cs
- SelectionPattern.cs
- XhtmlBasicPanelAdapter.cs
- KeyValueSerializer.cs
- DelegatingTypeDescriptionProvider.cs
- FilteredAttributeCollection.cs
- RawStylusInputCustomDataList.cs
- SplashScreenNativeMethods.cs
- CodeBlockBuilder.cs
- IMembershipProvider.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- XmlSchemaValidator.cs
- AssemblySettingAttributes.cs
- SurrogateDataContract.cs
- InvariantComparer.cs
- UniqueIdentifierService.cs
- Delegate.cs
- ListViewDeletedEventArgs.cs
- XPathNode.cs
- SimpleType.cs
- DataServiceQueryProvider.cs
- PageStatePersister.cs
- ScalarOps.cs
- ResourceType.cs
- FastPropertyAccessor.cs
- System.Data_BID.cs
- PlainXmlWriter.cs
- DnsPermission.cs
- FormatConvertedBitmap.cs
- BuildResult.cs
- _ContextAwareResult.cs
- OleDbRowUpdatedEvent.cs
- PropertyIDSet.cs
- ExpressionNode.cs
- TreeBuilderBamlTranslator.cs
- AuthorizationContext.cs
- SafeHGlobalHandleCritical.cs
- base64Transforms.cs
- sapiproxy.cs
- TreeView.cs
- StaticSiteMapProvider.cs
- DataServiceCollectionOfT.cs
- handlecollector.cs
- DataGridTable.cs
- FunctionNode.cs
- PagerStyle.cs
- SchemaElementDecl.cs
- ServicePerformanceCounters.cs
- OpCodes.cs
- WindowsToolbar.cs
- ConfigXmlWhitespace.cs
- DbResourceAllocator.cs
- XmlMembersMapping.cs
- DependencyPropertyHelper.cs
- PrimitiveOperationFormatter.cs
- ConfigurationSchemaErrors.cs
- controlskin.cs
- TraceLog.cs
- TableStyle.cs
- ISessionStateStore.cs
- Type.cs
- NavigatorOutput.cs
- SeekableReadStream.cs
- ISessionStateStore.cs
- XmlSchemaGroupRef.cs
- TargetControlTypeCache.cs
- CompositeScriptReferenceEventArgs.cs
- TextOnlyOutput.cs
- AccessText.cs
- DataGridViewDesigner.cs
- BinaryEditor.cs
- DiscreteKeyFrames.cs
- MetadataSerializer.cs
- SourceInterpreter.cs
- BaseCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SystemException.cs
- _ConnectionGroup.cs
- ListViewInsertedEventArgs.cs
- SystemMulticastIPAddressInformation.cs
- ConfigXmlElement.cs
- OneToOneMappingSerializer.cs
- SqlConnectionHelper.cs
- CodeGroup.cs
- WebSysDefaultValueAttribute.cs
- KnownBoxes.cs
- HttpSessionStateWrapper.cs
- VideoDrawing.cs
- SecUtil.cs
- ListBase.cs
- RawStylusInputCustomData.cs
- SecurityKeyIdentifier.cs