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
- ConfigsHelper.cs
- BridgeDataRecord.cs
- RegisteredExpandoAttribute.cs
- Item.cs
- ComponentConverter.cs
- TypeToken.cs
- SafeUserTokenHandle.cs
- DecimalSumAggregationOperator.cs
- StyleXamlParser.cs
- MaskedTextProvider.cs
- InternalCache.cs
- StylusPointCollection.cs
- RectAnimation.cs
- XamlBrushSerializer.cs
- ListViewDataItem.cs
- _Rfc2616CacheValidators.cs
- InternalRelationshipCollection.cs
- DataGridViewButtonColumn.cs
- SimpleTypesSurrogate.cs
- ModelProperty.cs
- WebPartDeleteVerb.cs
- FontFamilyIdentifier.cs
- BitmapEffectCollection.cs
- CmsInterop.cs
- DecimalConstantAttribute.cs
- FontInfo.cs
- Triplet.cs
- XmlSiteMapProvider.cs
- SkinBuilder.cs
- ScriptingRoleServiceSection.cs
- WindowsStatusBar.cs
- StackBuilderSink.cs
- CroppedBitmap.cs
- DataGridColumnCollection.cs
- DuplicateWaitObjectException.cs
- StdRegProviderWrapper.cs
- GACIdentityPermission.cs
- MenuCommands.cs
- KnownTypesProvider.cs
- WindowsServiceElement.cs
- MaskDesignerDialog.cs
- WebConfigurationManager.cs
- StylusButtonEventArgs.cs
- ActivitySurrogateSelector.cs
- XmlAutoDetectWriter.cs
- StyleHelper.cs
- DropDownButton.cs
- TemplateBindingExtensionConverter.cs
- XamlToRtfParser.cs
- ViewBox.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- JpegBitmapEncoder.cs
- InvalidProgramException.cs
- XmlnsDictionary.cs
- PeerDuplexChannelListener.cs
- TreeIterator.cs
- DecoderNLS.cs
- TraceListener.cs
- ParentQuery.cs
- _TimerThread.cs
- ViewPort3D.cs
- WebPartZone.cs
- AssemblyInfo.cs
- ParameterCollection.cs
- UrlMappingCollection.cs
- DataSvcMapFile.cs
- DataControlImageButton.cs
- BitmapEffectDrawingContextWalker.cs
- StructuralObject.cs
- HttpListenerResponse.cs
- Form.cs
- FixedSchema.cs
- MobileCategoryAttribute.cs
- UdpConstants.cs
- SettingsPropertyValueCollection.cs
- HttpHostedTransportConfiguration.cs
- InstanceDataCollection.cs
- NumberFormatter.cs
- ContainerCodeDomSerializer.cs
- HttpHandlerAction.cs
- AppModelKnownContentFactory.cs
- ListParaClient.cs
- SkinBuilder.cs
- NewExpression.cs
- Base64Encoder.cs
- TextTreeTextNode.cs
- TextSpanModifier.cs
- SiteOfOriginContainer.cs
- DetailsViewAutoFormat.cs
- StringKeyFrameCollection.cs
- Transform3DCollection.cs
- XmlComment.cs
- XmlValueConverter.cs
- IncrementalCompileAnalyzer.cs
- DataSourceProvider.cs
- ListView.cs
- ResourceIDHelper.cs
- safesecurityhelperavalon.cs
- TextEncodedRawTextWriter.cs
- ProcessInputEventArgs.cs