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
- TimeSpanOrInfiniteConverter.cs
- DateTimeValueSerializer.cs
- OrderedDictionaryStateHelper.cs
- RequestCachingSection.cs
- WebCategoryAttribute.cs
- AppearanceEditorPart.cs
- RelatedPropertyManager.cs
- DownloadProgressEventArgs.cs
- WebPartsPersonalization.cs
- Page.cs
- SafeProcessHandle.cs
- MsmqAppDomainProtocolHandler.cs
- WebPartActionVerb.cs
- OrderablePartitioner.cs
- AsyncPostBackTrigger.cs
- ProvidePropertyAttribute.cs
- LoginName.cs
- DocumentViewerHelper.cs
- StyleSheet.cs
- CompositionTarget.cs
- TemplateField.cs
- SplayTreeNode.cs
- BaseConfigurationRecord.cs
- WebControlsSection.cs
- ReadOnlyNameValueCollection.cs
- Regex.cs
- StateInitialization.cs
- Config.cs
- FixedSOMTableCell.cs
- MarkupWriter.cs
- DotExpr.cs
- SecurityTokenProvider.cs
- ValueProviderWrapper.cs
- NGCPageContentSerializerAsync.cs
- Label.cs
- AssociatedControlConverter.cs
- LoopExpression.cs
- MULTI_QI.cs
- TextTreeText.cs
- RootBuilder.cs
- UnaryNode.cs
- RadioButton.cs
- RectangleF.cs
- RadioButtonStandardAdapter.cs
- SpecularMaterial.cs
- CompensatableTransactionScopeActivityDesigner.cs
- BitmapEffectInput.cs
- HostProtectionException.cs
- TemplateBindingExtension.cs
- BadImageFormatException.cs
- MiniCustomAttributeInfo.cs
- CodeIdentifiers.cs
- XmlAttributeOverrides.cs
- GuidelineCollection.cs
- WindowsFormsSynchronizationContext.cs
- StatusBar.cs
- TimerElapsedEvenArgs.cs
- SqlBooleanizer.cs
- GridViewEditEventArgs.cs
- ButtonChrome.cs
- cookiecontainer.cs
- PageRanges.cs
- SmtpDateTime.cs
- XmlValueConverter.cs
- ScrollChangedEventArgs.cs
- WrappedDispatcherException.cs
- InitializationEventAttribute.cs
- Crc32.cs
- Walker.cs
- InvalidMessageContractException.cs
- EventProviderWriter.cs
- DrawItemEvent.cs
- DoubleCollectionValueSerializer.cs
- FamilyMap.cs
- SocketStream.cs
- DataGridColumnCollection.cs
- CreateUserWizardDesigner.cs
- StorageFunctionMapping.cs
- GeneralTransform.cs
- GridViewColumnHeaderAutomationPeer.cs
- Certificate.cs
- EntityDataSourceStatementEditorForm.cs
- HtmlInputImage.cs
- SchemaImporter.cs
- CodeAttributeDeclarationCollection.cs
- PresentationTraceSources.cs
- QuestionEventArgs.cs
- DropShadowBitmapEffect.cs
- ReadOnlyDictionary.cs
- CodeCompiler.cs
- AdornerHitTestResult.cs
- StickyNote.cs
- HtmlInputButton.cs
- ErrorTableItemStyle.cs
- FamilyMap.cs
- TypeBrowser.xaml.cs
- DmlSqlGenerator.cs
- EdmProperty.cs
- ISAPIWorkerRequest.cs
- ObjectStateManagerMetadata.cs