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
- FtpCachePolicyElement.cs
- NetworkInformationException.cs
- DictionaryEntry.cs
- DeriveBytes.cs
- TargetInvocationException.cs
- SqlProcedureAttribute.cs
- LinqDataSourceView.cs
- SystemIPGlobalProperties.cs
- DataKey.cs
- SID.cs
- Compilation.cs
- HtmlTernaryTree.cs
- IndexExpression.cs
- MulticastOption.cs
- Util.cs
- PrintDialog.cs
- EditingCoordinator.cs
- GrammarBuilderRuleRef.cs
- CryptoApi.cs
- InkCanvasFeedbackAdorner.cs
- ProfilePropertySettings.cs
- IsolatedStoragePermission.cs
- SimpleHandlerFactory.cs
- ICspAsymmetricAlgorithm.cs
- GridErrorDlg.cs
- CapabilitiesSection.cs
- XmlEventCache.cs
- TextDecoration.cs
- DataRowCollection.cs
- ProcessThread.cs
- LiteralControl.cs
- columnmapkeybuilder.cs
- SourceSwitch.cs
- PropertyStore.cs
- ItemsControlAutomationPeer.cs
- DecoderFallback.cs
- ValidationSummary.cs
- ByteRangeDownloader.cs
- EncryptedData.cs
- PolyQuadraticBezierSegment.cs
- Regex.cs
- HtmlElement.cs
- InlineUIContainer.cs
- HtmlControlAdapter.cs
- TemplateNameScope.cs
- RequestTimeoutManager.cs
- XPathException.cs
- CompilerGlobalScopeAttribute.cs
- ListViewDataItem.cs
- InternalConfigEventArgs.cs
- WindowPattern.cs
- RulePatternOps.cs
- RootDesignerSerializerAttribute.cs
- DrawListViewItemEventArgs.cs
- Math.cs
- Avt.cs
- StyleBamlTreeBuilder.cs
- ApplicationFileParser.cs
- ElementInit.cs
- ArraySegment.cs
- UpdateCommand.cs
- XmlAnyElementAttributes.cs
- ResourceDefaultValueAttribute.cs
- CodeTypeConstructor.cs
- StrokeNodeEnumerator.cs
- XmlJsonReader.cs
- GroupBoxRenderer.cs
- CodeDOMProvider.cs
- ByteKeyFrameCollection.cs
- SizeFConverter.cs
- ProfessionalColors.cs
- XslTransform.cs
- KeyEvent.cs
- TypeLibConverter.cs
- BamlReader.cs
- GridViewItemAutomationPeer.cs
- SharedUtils.cs
- UriWriter.cs
- WindowsGraphicsCacheManager.cs
- DecimalAnimation.cs
- ListViewInsertionMark.cs
- ErrorTableItemStyle.cs
- AbandonedMutexException.cs
- InvalidPrinterException.cs
- SafeReversePInvokeHandle.cs
- SortAction.cs
- ServiceInfo.cs
- LicenseContext.cs
- Button.cs
- HostedTransportConfigurationBase.cs
- ImagingCache.cs
- Comparer.cs
- SQLGuid.cs
- OutOfProcStateClientManager.cs
- UnknownExceptionActionHelper.cs
- GroupQuery.cs
- QueryOperationResponseOfT.cs
- CellRelation.cs
- MappableObjectManager.cs
- SchemaTypeEmitter.cs