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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OpCopier.cs
- RulePatternOps.cs
- SQLDateTimeStorage.cs
- CodeMemberMethod.cs
- WebConvert.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AssociatedControlConverter.cs
- CompareValidator.cs
- Resources.Designer.cs
- MouseOverProperty.cs
- DataShape.cs
- StreamResourceInfo.cs
- BackgroundFormatInfo.cs
- DataGridRowEventArgs.cs
- FrameworkContextData.cs
- ISAPIRuntime.cs
- PathParser.cs
- BitmapEffectDrawing.cs
- Stream.cs
- NamespaceList.cs
- IItemProperties.cs
- ByteRangeDownloader.cs
- XpsS0ValidatingLoader.cs
- PasswordTextNavigator.cs
- WindowsFormsEditorServiceHelper.cs
- PassportPrincipal.cs
- RecognizerInfo.cs
- WebPartConnectionsCloseVerb.cs
- XmlReturnReader.cs
- TableMethodGenerator.cs
- GradientStop.cs
- ObjectStateEntry.cs
- SchemaDeclBase.cs
- EntityDataSourceColumn.cs
- Rotation3D.cs
- DictionaryGlobals.cs
- DesignerTransaction.cs
- ResourceAttributes.cs
- odbcmetadatacollectionnames.cs
- DataViewManagerListItemTypeDescriptor.cs
- ObjectSecurity.cs
- TrackBarRenderer.cs
- EncoderNLS.cs
- DoubleAnimationUsingKeyFrames.cs
- HtmlEncodedRawTextWriter.cs
- WorkflowViewStateService.cs
- SiteMapDataSource.cs
- QuaternionConverter.cs
- ButtonBaseAdapter.cs
- FrameworkTextComposition.cs
- BindingList.cs
- HierarchicalDataSourceIDConverter.cs
- ContextInformation.cs
- followingquery.cs
- DataListItemEventArgs.cs
- MouseDevice.cs
- ListViewDesigner.cs
- EditorOptionAttribute.cs
- ValidatorCollection.cs
- ViewPort3D.cs
- InputLanguageManager.cs
- IPEndPoint.cs
- rsa.cs
- ScrollableControl.cs
- FixedStringLookup.cs
- SystemSounds.cs
- RowSpanVector.cs
- X509SecurityTokenParameters.cs
- WSIdentityFaultException.cs
- ObjectDataSourceSelectingEventArgs.cs
- SpotLight.cs
- ClientProtocol.cs
- HistoryEventArgs.cs
- CharKeyFrameCollection.cs
- CheckBoxList.cs
- _NestedMultipleAsyncResult.cs
- DispatcherObject.cs
- XamlWrapperReaders.cs
- AutoGeneratedField.cs
- MatrixUtil.cs
- CompositeDataBoundControl.cs
- ProfilePropertyMetadata.cs
- HTMLTextWriter.cs
- XamlVector3DCollectionSerializer.cs
- ScriptingSectionGroup.cs
- EntityContainerAssociationSetEnd.cs
- ElementNotEnabledException.cs
- HtmlInputCheckBox.cs
- EventHandlerList.cs
- FixedSOMLineRanges.cs
- ToolStripPanel.cs
- TemplatedAdorner.cs
- OdbcConnectionOpen.cs
- CollectionType.cs
- _CommandStream.cs
- XmlSchemaAttributeGroupRef.cs
- HttpListenerRequest.cs
- ProfilePropertyMetadata.cs
- CancelEventArgs.cs
- PersistenceContext.cs