Code:
/ FX-1434 / FX-1434 / 1.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
- ComponentEvent.cs
- RayMeshGeometry3DHitTestResult.cs
- AssemblyName.cs
- PrintPageEvent.cs
- SafeArrayTypeMismatchException.cs
- MobileControlBuilder.cs
- ByteFacetDescriptionElement.cs
- HttpConfigurationSystem.cs
- SetterTriggerConditionValueConverter.cs
- TextBoxBase.cs
- SecurityKeyIdentifier.cs
- _OSSOCK.cs
- XamlStyleSerializer.cs
- SpnegoTokenAuthenticator.cs
- ResourcePermissionBaseEntry.cs
- _AuthenticationState.cs
- Collection.cs
- PolicyStatement.cs
- FillErrorEventArgs.cs
- DataServices.cs
- Wizard.cs
- CqlLexer.cs
- VBIdentifierName.cs
- SmtpReplyReader.cs
- ResXBuildProvider.cs
- ExtensionQuery.cs
- CustomErrorsSection.cs
- BevelBitmapEffect.cs
- MenuBindingsEditorForm.cs
- QuaternionConverter.cs
- BezierSegment.cs
- DrawToolTipEventArgs.cs
- GridViewAutomationPeer.cs
- VideoDrawing.cs
- SHA512Managed.cs
- SerializationException.cs
- ConfigurationSchemaErrors.cs
- DiscoveryServerProtocol.cs
- ExpandableObjectConverter.cs
- HyperLinkDesigner.cs
- OdbcReferenceCollection.cs
- TableStyle.cs
- VerificationException.cs
- RelationshipEndCollection.cs
- StoragePropertyMapping.cs
- TypeSemantics.cs
- FlatButtonAppearance.cs
- DataSourceIDConverter.cs
- SrgsRuleRef.cs
- BulletDecorator.cs
- ControlCommandSet.cs
- DataGridViewLinkColumn.cs
- JulianCalendar.cs
- MsmqInputMessagePool.cs
- LineUtil.cs
- MasterPageBuildProvider.cs
- httpstaticobjectscollection.cs
- CanonicalFontFamilyReference.cs
- CacheRequest.cs
- ReadOnlyCollectionBuilder.cs
- DataGridTablesFactory.cs
- MemberRelationshipService.cs
- Geometry.cs
- WsrmFault.cs
- BooleanKeyFrameCollection.cs
- FixUp.cs
- TextBlock.cs
- TableRow.cs
- DataGridPagingPage.cs
- Connection.cs
- SerialErrors.cs
- BufferedStream2.cs
- StylusPointPropertyId.cs
- EmbeddedObject.cs
- GridViewUpdatedEventArgs.cs
- JsonXmlDataContract.cs
- TagPrefixCollection.cs
- OracleLob.cs
- EntityDataSourceContextDisposingEventArgs.cs
- SimpleHandlerFactory.cs
- WindowsTitleBar.cs
- ThreadAbortException.cs
- ImageCollectionCodeDomSerializer.cs
- DataSetViewSchema.cs
- CrossContextChannel.cs
- Hash.cs
- DocumentPageTextView.cs
- StringKeyFrameCollection.cs
- PersistChildrenAttribute.cs
- ScriptingJsonSerializationSection.cs
- CodePageEncoding.cs
- XsdDateTime.cs
- WebPartZoneBase.cs
- TopClause.cs
- SmtpCommands.cs
- NativeCppClassAttribute.cs
- FrameworkElementFactoryMarkupObject.cs
- XamlPathDataSerializer.cs
- ToolStripItemCollection.cs
- TcpProcessProtocolHandler.cs