Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 5 / 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. // // ==--== // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomTrackingQuery.cs
- BindingContext.cs
- HTMLTextWriter.cs
- CollectionType.cs
- NegotiationTokenAuthenticatorState.cs
- MobileSysDescriptionAttribute.cs
- PeerApplication.cs
- SpellerHighlightLayer.cs
- WindowsAltTab.cs
- CultureMapper.cs
- OracleDateTime.cs
- RuntimeConfigLKG.cs
- QilList.cs
- LayoutEngine.cs
- InputBindingCollection.cs
- CombinedGeometry.cs
- RangeValuePatternIdentifiers.cs
- EntityCommandCompilationException.cs
- SqlProfileProvider.cs
- SeverityFilter.cs
- PartialCachingAttribute.cs
- WebConfigurationHostFileChange.cs
- wmiprovider.cs
- InternalBufferOverflowException.cs
- MethodSet.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FlowLayout.cs
- IIS7WorkerRequest.cs
- ExpressionReplacer.cs
- ChangePasswordAutoFormat.cs
- ObjectStateManagerMetadata.cs
- StreamInfo.cs
- IApplicationTrustManager.cs
- IdentitySection.cs
- TypeNameParser.cs
- Activator.cs
- ImpersonateTokenRef.cs
- Missing.cs
- ColumnResult.cs
- ObjectManager.cs
- CodeGenerator.cs
- DbConnectionOptions.cs
- XmlSchemaSimpleType.cs
- ExpressionBindings.cs
- DrawingGroup.cs
- ProviderCollection.cs
- Button.cs
- DataGridViewCellParsingEventArgs.cs
- ObjectPropertyMapping.cs
- ListViewSortEventArgs.cs
- SvcMapFileSerializer.cs
- serverconfig.cs
- TokenBasedSet.cs
- entityreference_tresulttype.cs
- LinearQuaternionKeyFrame.cs
- SspiWrapper.cs
- ListViewGroup.cs
- TransformConverter.cs
- XmlHierarchicalEnumerable.cs
- Condition.cs
- AsyncPostBackErrorEventArgs.cs
- TableLayout.cs
- XmlIlGenerator.cs
- SqlDependencyUtils.cs
- SqlDependency.cs
- Ops.cs
- ActivityTypeDesigner.xaml.cs
- InertiaTranslationBehavior.cs
- QilStrConcatenator.cs
- CompilationSection.cs
- InternalCache.cs
- HttpCapabilitiesSectionHandler.cs
- BmpBitmapDecoder.cs
- FrameworkContentElement.cs
- ToolStripSeparator.cs
- ToolboxItem.cs
- SpellCheck.cs
- ZipFileInfo.cs
- Operand.cs
- ArgumentException.cs
- XPathDocument.cs
- FolderNameEditor.cs
- WebPartEditorApplyVerb.cs
- XmlAnyElementAttribute.cs
- RoutingTable.cs
- GPStream.cs
- CacheChildrenQuery.cs
- EntityDataSourceQueryBuilder.cs
- GridViewRowEventArgs.cs
- TaiwanLunisolarCalendar.cs
- MdbDataFileEditor.cs
- ToolStripContentPanelDesigner.cs
- ChangeBlockUndoRecord.cs
- SecurityUtils.cs
- StaticResourceExtension.cs
- CodeCatchClause.cs
- ToolboxBitmapAttribute.cs
- OptionUsage.cs
- JsonObjectDataContract.cs
- QueryProcessor.cs