Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 1305376 / 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)) {}
[System.Security.SecuritySafeCritical] // auto-generated
public HMACSHA384 (byte[] key) {
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProfileManager.cs
- SelectQueryOperator.cs
- TypeConverterHelper.cs
- ExceptionHandler.cs
- DoubleAnimationClockResource.cs
- HttpBindingExtension.cs
- SecurityValidationBehavior.cs
- InternalConfigHost.cs
- Point.cs
- AdornerDecorator.cs
- GB18030Encoding.cs
- HostVisual.cs
- SqlUserDefinedTypeAttribute.cs
- FunctionImportElement.cs
- DateTimeUtil.cs
- DialogDivider.cs
- CodeTypeReferenceSerializer.cs
- XmlNodeChangedEventManager.cs
- UnhandledExceptionEventArgs.cs
- ProfileInfo.cs
- GridView.cs
- PathSegment.cs
- HtmlCommandAdapter.cs
- DataGridColumnHeadersPresenter.cs
- ImageCodecInfo.cs
- DynamicPropertyHolder.cs
- GenericIdentity.cs
- MailDefinition.cs
- MultilineStringConverter.cs
- ThousandthOfEmRealDoubles.cs
- ClosureBinding.cs
- sqlcontext.cs
- LogSwitch.cs
- InheritanceService.cs
- Columns.cs
- XmlCharCheckingWriter.cs
- FixedSchema.cs
- SecurityCriticalDataForSet.cs
- RequestContext.cs
- SqlDataSourceStatusEventArgs.cs
- WSFederationHttpSecurityMode.cs
- PackageController.cs
- DocComment.cs
- CngKeyCreationParameters.cs
- NetworkStream.cs
- RectangleF.cs
- SqlDataSourceCache.cs
- ResourcePool.cs
- MissingManifestResourceException.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- _emptywebproxy.cs
- CheckBoxList.cs
- MappingSource.cs
- HyperLinkField.cs
- DataServiceHostWrapper.cs
- ActivityContext.cs
- VisualStyleInformation.cs
- Property.cs
- ManipulationStartingEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- ClearTypeHintValidation.cs
- UInt32.cs
- HighContrastHelper.cs
- PeekCompletedEventArgs.cs
- SamlAuthenticationStatement.cs
- DataGridViewRowsRemovedEventArgs.cs
- ToolStripDropDown.cs
- Menu.cs
- SortableBindingList.cs
- DateTimeParse.cs
- ToolStripSeparatorRenderEventArgs.cs
- XMLUtil.cs
- HiddenFieldPageStatePersister.cs
- Pen.cs
- SqlBulkCopy.cs
- XmlStreamStore.cs
- InvokeSchedule.cs
- ReceiveActivityDesignerTheme.cs
- DataViewSetting.cs
- ClickablePoint.cs
- NumericExpr.cs
- ToolStripContentPanel.cs
- IPEndPointCollection.cs
- TimelineClockCollection.cs
- ProfileModule.cs
- CompilerHelpers.cs
- Models.cs
- RemotingException.cs
- WindowInteropHelper.cs
- TextFormatterContext.cs
- GridViewSelectEventArgs.cs
- RijndaelManaged.cs
- ServiceModelStringsVersion1.cs
- ContentIterators.cs
- ControlIdConverter.cs
- WindowsGrip.cs
- XmlQuerySequence.cs
- ServiceInstanceProvider.cs
- LogRestartAreaEnumerator.cs
- PointCollectionValueSerializer.cs