Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualStateGroup.cs
- SchemaHelper.cs
- DoubleLinkList.cs
- EventData.cs
- LineSegment.cs
- CompilerResults.cs
- StorageRoot.cs
- connectionpool.cs
- DecimalFormatter.cs
- TrueReadOnlyCollection.cs
- ComponentEditorPage.cs
- EUCJPEncoding.cs
- WebBrowserNavigatingEventHandler.cs
- DiagnosticsConfigurationHandler.cs
- FixedTextBuilder.cs
- SecurityContextSecurityTokenAuthenticator.cs
- XPathMessageFilter.cs
- WorkflowRuntimeElement.cs
- Visual.cs
- HttpServerVarsCollection.cs
- EntityConnectionStringBuilder.cs
- RawStylusInputCustomDataList.cs
- PhysicalFontFamily.cs
- CultureSpecificStringDictionary.cs
- StandardMenuStripVerb.cs
- ServerTooBusyException.cs
- GridViewRowPresenterBase.cs
- AssemblyFilter.cs
- DbExpressionRules.cs
- XPathItem.cs
- ImagingCache.cs
- ExtenderControl.cs
- LinkButton.cs
- Matrix.cs
- TrackingCondition.cs
- GridItem.cs
- CryptoApi.cs
- ComPlusServiceHost.cs
- CurrentTimeZone.cs
- XmlNavigatorFilter.cs
- SourceLocationProvider.cs
- ContactManager.cs
- DetailsViewDeletedEventArgs.cs
- SafeSecurityHelper.cs
- SpeechAudioFormatInfo.cs
- CodeIdentifier.cs
- HyperLink.cs
- XNodeValidator.cs
- TypeHelpers.cs
- CodeDefaultValueExpression.cs
- ListViewPagedDataSource.cs
- Highlights.cs
- UIInitializationException.cs
- CultureInfo.cs
- CommonObjectSecurity.cs
- BindStream.cs
- TypeConverterAttribute.cs
- CharacterShapingProperties.cs
- StringComparer.cs
- DynamicUpdateCommand.cs
- DefaultDiscoveryService.cs
- FixedElement.cs
- WebPartAddingEventArgs.cs
- Scene3D.cs
- RadioButtonBaseAdapter.cs
- DataServiceSaveChangesEventArgs.cs
- EnterpriseServicesHelper.cs
- TargetParameterCountException.cs
- PathGeometry.cs
- LayoutDump.cs
- UserControl.cs
- UsernameTokenFactoryCredential.cs
- FormsAuthentication.cs
- SmiSettersStream.cs
- Vector3DAnimationBase.cs
- ISAPIApplicationHost.cs
- GlyphCache.cs
- IndexedGlyphRun.cs
- TextRangeAdaptor.cs
- XPathChildIterator.cs
- BookmarkTable.cs
- HScrollBar.cs
- CodeGen.cs
- MsmqIntegrationBindingElement.cs
- Canvas.cs
- SoapSchemaExporter.cs
- UriExt.cs
- CheckoutException.cs
- JsonFormatReaderGenerator.cs
- HandleRef.cs
- TabPanel.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataControlExtensions.cs
- NegatedCellConstant.cs
- TextServicesDisplayAttribute.cs
- KeyFrames.cs
- CodeTypeDeclarationCollection.cs
- WebHttpSecurity.cs
- ActivityInstanceReference.cs
- DeferredReference.cs