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
- SelectedGridItemChangedEvent.cs
- MaxMessageSizeStream.cs
- ColorTranslator.cs
- TextTreeRootTextBlock.cs
- AnonymousIdentificationModule.cs
- PathGeometry.cs
- QilParameter.cs
- DispatcherOperation.cs
- DataGridViewMethods.cs
- QilGeneratorEnv.cs
- ChannelAcceptor.cs
- XamlNamespaceHelper.cs
- SortQuery.cs
- PropertyGroupDescription.cs
- BrowserDefinition.cs
- GuidelineSet.cs
- TriState.cs
- Activity.cs
- ProcessHostMapPath.cs
- DbConnectionPoolCounters.cs
- OdbcHandle.cs
- ForEachAction.cs
- XamlFrame.cs
- XamlPathDataSerializer.cs
- SerializationStore.cs
- GridViewColumnCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- PrintingPermissionAttribute.cs
- RoleManagerEventArgs.cs
- HyperLinkField.cs
- AccessControlList.cs
- DataPointer.cs
- ClientScriptManager.cs
- FieldTemplateFactory.cs
- RegistryPermission.cs
- PropertyHelper.cs
- TypeContext.cs
- SettingsAttributeDictionary.cs
- FactoryGenerator.cs
- ExecutionEngineException.cs
- SpeechUI.cs
- SplitterCancelEvent.cs
- httpapplicationstate.cs
- WebResourceAttribute.cs
- UrlRoutingModule.cs
- SemanticAnalyzer.cs
- SplineKeyFrames.cs
- FileStream.cs
- WebPartChrome.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- WebReferencesBuildProvider.cs
- AuthenticationModuleElement.cs
- DockAndAnchorLayout.cs
- TypeGeneratedEventArgs.cs
- SubclassTypeValidator.cs
- ISessionStateStore.cs
- ScalarConstant.cs
- WindowsListViewItem.cs
- TraceXPathNavigator.cs
- GraphicsPathIterator.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ViewManager.cs
- FamilyMapCollection.cs
- TreeViewCancelEvent.cs
- ContextMarshalException.cs
- _ListenerRequestStream.cs
- EventDriven.cs
- RequiredFieldValidator.cs
- StringFunctions.cs
- ValidationException.cs
- Variable.cs
- XmlAttributeCollection.cs
- URI.cs
- BidOverLoads.cs
- ErrorHandlingReceiver.cs
- Freezable.cs
- ErrorEventArgs.cs
- FocusTracker.cs
- ComplexPropertyEntry.cs
- PaintEvent.cs
- SharedHttpTransportManager.cs
- Screen.cs
- IWorkflowDebuggerService.cs
- LabelEditEvent.cs
- TerminatorSinks.cs
- JoinCqlBlock.cs
- TransformerInfoCollection.cs
- XhtmlBasicPageAdapter.cs
- WindowsProgressbar.cs
- UInt64Converter.cs
- ToolTip.cs
- IPAddress.cs
- _Rfc2616CacheValidators.cs
- MetadataArtifactLoaderComposite.cs
- SecurityContext.cs
- SharedUtils.cs
- FontWeight.cs
- EditorZone.cs
- DomNameTable.cs
- BitmapEffectGeneralTransform.cs