Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MessageEncoderFactory.cs
- wgx_sdk_version.cs
- GeneratedCodeAttribute.cs
- SuppressIldasmAttribute.cs
- nulltextcontainer.cs
- CursorConverter.cs
- IsolatedStorageFile.cs
- latinshape.cs
- WindowsProgressbar.cs
- GridViewCancelEditEventArgs.cs
- XMLSchema.cs
- MinimizableAttributeTypeConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- IsolatedStorageException.cs
- WMIGenerator.cs
- IndexedGlyphRun.cs
- KeyPressEvent.cs
- DataServiceContext.cs
- DesignerHierarchicalDataSourceView.cs
- WindowsClaimSet.cs
- AvTraceDetails.cs
- TransformPattern.cs
- CheckBoxStandardAdapter.cs
- DbBuffer.cs
- CodeCommentStatementCollection.cs
- RubberbandSelector.cs
- CompositeControl.cs
- ElementNotEnabledException.cs
- UntrustedRecipientException.cs
- TimeZone.cs
- EncoderParameter.cs
- EncryptedReference.cs
- PackageDigitalSignatureManager.cs
- DiscriminatorMap.cs
- View.cs
- WorkflowTimerService.cs
- XmlRawWriter.cs
- RegionInfo.cs
- Bits.cs
- AspNetHostingPermission.cs
- ComponentCache.cs
- XmlNavigatorFilter.cs
- SettingsPropertyValue.cs
- PenCursorManager.cs
- HtmlElement.cs
- translator.cs
- Thumb.cs
- ToolStripPanelCell.cs
- TokenFactoryCredential.cs
- DesignerTransaction.cs
- WindowsSysHeader.cs
- SqlDataSourceStatusEventArgs.cs
- LabelEditEvent.cs
- PagerStyle.cs
- SqlWorkflowInstanceStoreLock.cs
- SchemaComplexType.cs
- BitmapEffectInputData.cs
- ListViewItemMouseHoverEvent.cs
- HtmlInputCheckBox.cs
- ChameleonKey.cs
- Monitor.cs
- InfoCardCryptoHelper.cs
- URLIdentityPermission.cs
- StructuredType.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- WCFBuildProvider.cs
- RawStylusInput.cs
- SvcMapFile.cs
- TableLayoutStyleCollection.cs
- MemberInitExpression.cs
- ExtendedPropertyCollection.cs
- WriteLine.cs
- StoragePropertyMapping.cs
- OleDbConnectionInternal.cs
- ListInitExpression.cs
- CodeAttributeDeclarationCollection.cs
- RealizationDrawingContextWalker.cs
- MinMaxParagraphWidth.cs
- FileSystemWatcher.cs
- ToolStripPanelRow.cs
- X509SecurityTokenAuthenticator.cs
- FormatConvertedBitmap.cs
- Run.cs
- ZipIOModeEnforcingStream.cs
- BinaryMessageEncodingBindingElement.cs
- Queue.cs
- PlatformNotSupportedException.cs
- DataComponentGenerator.cs
- ViewManager.cs
- DrawingState.cs
- SerializationAttributes.cs
- GPStream.cs
- WaitHandle.cs
- CodeMemberField.cs
- String.cs
- DataRelationPropertyDescriptor.cs
- ReadOnlyAttribute.cs
- ClientFactory.cs
- ImagingCache.cs
- UMPAttributes.cs