Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Switch.cs
- AssertFilter.cs
- PlanCompiler.cs
- HttpListener.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ObjectCloneHelper.cs
- PenThread.cs
- ContractsBCL.cs
- StringValidator.cs
- RegionData.cs
- _AutoWebProxyScriptWrapper.cs
- PassportAuthenticationModule.cs
- UserUseLicenseDictionaryLoader.cs
- WebPartsPersonalizationAuthorization.cs
- SystemResourceKey.cs
- MsmqMessageSerializationFormat.cs
- CacheHelper.cs
- AutomationIdentifierGuids.cs
- DescendantBaseQuery.cs
- EntityDataSourceDesignerHelper.cs
- TogglePattern.cs
- WindowsRichEdit.cs
- WebPartPersonalization.cs
- DataRowView.cs
- UpdateRecord.cs
- NativeMethods.cs
- ObjectViewEntityCollectionData.cs
- ImageMapEventArgs.cs
- RequestTimeoutManager.cs
- ClonableStack.cs
- DataGridViewRow.cs
- AttributeQuery.cs
- SettingsAttributeDictionary.cs
- WsatEtwTraceListener.cs
- ObjectDataSourceFilteringEventArgs.cs
- MailDefinition.cs
- NamespaceList.cs
- ListViewUpdatedEventArgs.cs
- HandlerFactoryCache.cs
- StringCollectionEditor.cs
- QilIterator.cs
- Visitor.cs
- ToolStripDropDownItem.cs
- BCLDebug.cs
- DesignerLoader.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ScriptingSectionGroup.cs
- Style.cs
- AccessedThroughPropertyAttribute.cs
- BufferedStream.cs
- SettingsPropertyNotFoundException.cs
- MessageSecurityOverMsmq.cs
- TriState.cs
- BackStopAuthenticationModule.cs
- IndependentAnimationStorage.cs
- SQLSingleStorage.cs
- ThicknessConverter.cs
- MediaContextNotificationWindow.cs
- CodeTypeReference.cs
- _NegoState.cs
- Attributes.cs
- TraceEventCache.cs
- BitmapData.cs
- OdbcInfoMessageEvent.cs
- FunctionImportMapping.cs
- DataGridViewColumnConverter.cs
- cache.cs
- ParseChildrenAsPropertiesAttribute.cs
- FamilyCollection.cs
- DesignerAttributeInfo.cs
- ClientScriptItemCollection.cs
- XmlNodeReader.cs
- RegionData.cs
- PropertyEntry.cs
- Item.cs
- PartEditor.cs
- DeviceFilterDictionary.cs
- ServerValidateEventArgs.cs
- PackageRelationship.cs
- PointF.cs
- Message.cs
- DataSetFieldSchema.cs
- uribuilder.cs
- HttpPostedFile.cs
- EntitySqlException.cs
- CharStorage.cs
- Pen.cs
- XmlDictionaryString.cs
- DateTimeValueSerializerContext.cs
- ScrollChrome.cs
- DefaultObjectMappingItemCollection.cs
- TextViewSelectionProcessor.cs
- SeverityFilter.cs
- DoubleLinkListEnumerator.cs
- Manipulation.cs
- CharEnumerator.cs
- Attributes.cs
- designeractionbehavior.cs
- FormViewUpdateEventArgs.cs