Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRangeEditTables.cs
- LoginStatusDesigner.cs
- DbProviderFactory.cs
- TransformDescriptor.cs
- CreateUserErrorEventArgs.cs
- ConnectionString.cs
- ResourceContainer.cs
- SmiEventStream.cs
- CompositeFontInfo.cs
- AsyncStreamReader.cs
- LineProperties.cs
- designeractionlistschangedeventargs.cs
- RelatedPropertyManager.cs
- PrimitiveXmlSerializers.cs
- CompilationUnit.cs
- SrgsRule.cs
- UpdateTracker.cs
- XmlExpressionDumper.cs
- FormConverter.cs
- HttpPostedFile.cs
- UseAttributeSetsAction.cs
- OSFeature.cs
- TextPointer.cs
- PersistenceTypeAttribute.cs
- LogArchiveSnapshot.cs
- ColumnMapTranslator.cs
- HTMLTagNameToTypeMapper.cs
- EpmSyndicationContentSerializer.cs
- Util.cs
- NotCondition.cs
- ZoneLinkButton.cs
- IdnMapping.cs
- InternalCompensate.cs
- ComponentCache.cs
- DataErrorValidationRule.cs
- ScrollProviderWrapper.cs
- designeractionlistschangedeventargs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FutureFactory.cs
- DbProviderServices.cs
- CodeIdentifier.cs
- SubtreeProcessor.cs
- ItemCheckEvent.cs
- SkinBuilder.cs
- FontFamilyValueSerializer.cs
- DBSqlParserTable.cs
- GAC.cs
- TypeLoadException.cs
- MatrixValueSerializer.cs
- ServiceModelActivationSectionGroup.cs
- GcSettings.cs
- IIS7UserPrincipal.cs
- ValidatorCollection.cs
- BuildProvider.cs
- PassportAuthentication.cs
- ZipFileInfoCollection.cs
- ProfilePropertyNameValidator.cs
- DataSourceListEditor.cs
- ProxyGenerationError.cs
- LoadItemsEventArgs.cs
- HighContrastHelper.cs
- TypeDependencyAttribute.cs
- SimpleExpression.cs
- DecimalFormatter.cs
- XmlFormatExtensionPrefixAttribute.cs
- ListBindingHelper.cs
- UnhandledExceptionEventArgs.cs
- FontSourceCollection.cs
- QilDataSource.cs
- ReadWriteObjectLock.cs
- URLAttribute.cs
- CustomAttributeBuilder.cs
- ConfigurationLocationCollection.cs
- IssuedTokenParametersEndpointAddressElement.cs
- UIElementParagraph.cs
- PointAnimationUsingPath.cs
- FtpWebResponse.cs
- WindowsFormsHelpers.cs
- NullableDoubleAverageAggregationOperator.cs
- DeviceContexts.cs
- MembershipPasswordException.cs
- DataPagerCommandEventArgs.cs
- FieldAccessException.cs
- XmlEnumAttribute.cs
- XPathNavigator.cs
- StaticExtension.cs
- DataGridRowClipboardEventArgs.cs
- URLMembershipCondition.cs
- SocketAddress.cs
- RegionIterator.cs
- RoleGroupCollectionEditor.cs
- HtmlForm.cs
- AttributeProviderAttribute.cs
- XPathScanner.cs
- ToolStripDropDownItemDesigner.cs
- SspiSafeHandles.cs
- ConfigXmlSignificantWhitespace.cs
- Margins.cs
- util.cs
- ActivityCodeGenerator.cs