Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 2 / HMACSHA384.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA384.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA384 : HMAC { private bool m_useLegacyBlockSize = Utils._ProduceLegacyHmacValues(); // // public constructors // public HMACSHA384 () : this (Utils.GenerateRandom(128)) {} public HMACSHA384 (byte[] key) { Utils._ShowLegacyHmacWarning(); m_hashName = "SHA384"; m_hash1 = new SHA384Managed(); m_hash2 = new SHA384Managed(); HashSizeValue = 384; BlockSizeValue = BlockSize; base.InitializeKey(key); } private int BlockSize { get { return m_useLegacyBlockSize ? 64 : 128; } } // See code:System.Security.Cryptography.HMACSHA512.ProduceLegacyHmacValues public bool ProduceLegacyHmacValues { get { return m_useLegacyBlockSize; } set { m_useLegacyBlockSize = value; BlockSizeValue = BlockSize; InitializeKey(KeyValue); } } } } // 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
- SpecialTypeDataContract.cs
- XmlDocumentSerializer.cs
- ConfigDefinitionUpdates.cs
- HttpBrowserCapabilitiesWrapper.cs
- ButtonPopupAdapter.cs
- WebBrowser.cs
- UserPreferenceChangedEventArgs.cs
- UdpChannelListener.cs
- Control.cs
- ProfileParameter.cs
- SiteMapNodeItemEventArgs.cs
- WindowCollection.cs
- BaseTemplateParser.cs
- OutputCacheSettingsSection.cs
- AutomationAttributeInfo.cs
- TextContainerChangeEventArgs.cs
- TemplatedAdorner.cs
- CompositionCommandSet.cs
- FlowLayoutSettings.cs
- DockPanel.cs
- Compensate.cs
- TransformPattern.cs
- OutputScope.cs
- Vector3DIndependentAnimationStorage.cs
- Expression.DebuggerProxy.cs
- XmlSchemaProviderAttribute.cs
- PermissionSetTriple.cs
- MultilineStringConverter.cs
- ContentControl.cs
- TextParaLineResult.cs
- GlyphRunDrawing.cs
- NetworkInformationPermission.cs
- XamlFilter.cs
- Polyline.cs
- ParameterCollection.cs
- VisualTreeUtils.cs
- SqlDataSourceCommandEventArgs.cs
- AuthenticationConfig.cs
- HttpClientCertificate.cs
- TextPenaltyModule.cs
- ProjectionCamera.cs
- BuildDependencySet.cs
- RuntimeConfigLKG.cs
- CopyOnWriteList.cs
- XmlLoader.cs
- EmulateRecognizeCompletedEventArgs.cs
- SessionStateSection.cs
- While.cs
- NameValueSectionHandler.cs
- JavaScriptObjectDeserializer.cs
- FamilyCollection.cs
- SerializationInfoEnumerator.cs
- OdbcInfoMessageEvent.cs
- EUCJPEncoding.cs
- TakeQueryOptionExpression.cs
- XmlAnyElementAttribute.cs
- PointKeyFrameCollection.cs
- DocumentSchemaValidator.cs
- QueryOptionExpression.cs
- typedescriptorpermissionattribute.cs
- SpotLight.cs
- DataGridColumnCollection.cs
- XmlElementCollection.cs
- ClaimComparer.cs
- CompoundFileReference.cs
- mediaeventshelper.cs
- DocumentPageView.cs
- NullableDecimalSumAggregationOperator.cs
- EventPropertyMap.cs
- NestedContainer.cs
- SqlEnums.cs
- RestHandlerFactory.cs
- WebUtil.cs
- WindowsFormsSectionHandler.cs
- EventPropertyMap.cs
- DecoderExceptionFallback.cs
- KeyedCollection.cs
- Int32Collection.cs
- PropertyValueEditor.cs
- ParseNumbers.cs
- PartialCachingControl.cs
- ReliableChannelFactory.cs
- ChildrenQuery.cs
- IssuedSecurityTokenProvider.cs
- OracleDataAdapter.cs
- DataGridParentRows.cs
- RestClientProxyHandler.cs
- Lease.cs
- MonitorWrapper.cs
- MsmqOutputChannel.cs
- RepeatInfo.cs
- MatcherBuilder.cs
- WebBrowserContainer.cs
- TwoPhaseCommit.cs
- GridEntryCollection.cs
- _LazyAsyncResult.cs
- IndexedGlyphRun.cs
- PreservationFileWriter.cs
- ComponentResourceKeyConverter.cs
- OdbcConnectionStringbuilder.cs