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
- PrimarySelectionGlyph.cs
- EnumDataContract.cs
- DoubleLinkList.cs
- CodeAccessPermission.cs
- CodeIdentifiers.cs
- HotCommands.cs
- Mutex.cs
- DataGridPagerStyle.cs
- View.cs
- RangeValuePattern.cs
- CompareValidator.cs
- GrammarBuilderBase.cs
- InputReferenceExpression.cs
- ScriptModule.cs
- X509CertificateStore.cs
- KeyedHashAlgorithm.cs
- FixedSOMImage.cs
- SettingsSavedEventArgs.cs
- RemoteWebConfigurationHost.cs
- TcpTransportSecurityElement.cs
- AccessControlEntry.cs
- SupportsEventValidationAttribute.cs
- GridToolTip.cs
- PartDesigner.cs
- New.cs
- MobileUITypeEditor.cs
- BufferedWebEventProvider.cs
- RotateTransform.cs
- ScrollBar.cs
- TraceContext.cs
- WebRequest.cs
- HelloMessageCD1.cs
- mansign.cs
- CoTaskMemHandle.cs
- DataGridViewCellStyleConverter.cs
- SafeHGlobalHandleCritical.cs
- XmlnsCache.cs
- ToolStripDropDown.cs
- TransformGroup.cs
- DelayedRegex.cs
- SafeHandle.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- RectangleGeometry.cs
- Timeline.cs
- XmlQueryOutput.cs
- Border.cs
- CompositeDataBoundControl.cs
- DbConvert.cs
- DynamicDataRouteHandler.cs
- BamlLocalizabilityResolver.cs
- IncrementalHitTester.cs
- XmlLanguageConverter.cs
- SqlError.cs
- TemplateBindingExtension.cs
- InteropAutomationProvider.cs
- XmlNodeComparer.cs
- CodeVariableDeclarationStatement.cs
- LocationReferenceEnvironment.cs
- Group.cs
- MethodBuilderInstantiation.cs
- AsymmetricKeyExchangeDeformatter.cs
- CodeCompileUnit.cs
- VirtualPathProvider.cs
- RectAnimationUsingKeyFrames.cs
- oledbmetadatacolumnnames.cs
- OletxResourceManager.cs
- FontCacheUtil.cs
- CharEnumerator.cs
- ListControlStringCollectionEditor.cs
- StdValidatorsAndConverters.cs
- ObjectKeyFrameCollection.cs
- EastAsianLunisolarCalendar.cs
- DataFieldEditor.cs
- AudioException.cs
- RectIndependentAnimationStorage.cs
- PropertyOverridesDialog.cs
- DbConnectionPoolGroup.cs
- OleDbCommand.cs
- OrderedEnumerableRowCollection.cs
- FastEncoder.cs
- TreeViewDesigner.cs
- WebPartCollection.cs
- WebColorConverter.cs
- WebScriptServiceHostFactory.cs
- RtfToXamlLexer.cs
- SmiTypedGetterSetter.cs
- UICuesEvent.cs
- MultiAsyncResult.cs
- BaseCodePageEncoding.cs
- NameHandler.cs
- SerializationHelper.cs
- Tablet.cs
- CodeLabeledStatement.cs
- MessageSmuggler.cs
- DataGridViewComboBoxColumnDesigner.cs
- CollectionExtensions.cs
- HttpProfileGroupBase.cs
- BuildProvidersCompiler.cs
- CodeDOMProvider.cs
- Polyline.cs