Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 1 / 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
- XmlImplementation.cs
- StringFreezingAttribute.cs
- DataSourceControlBuilder.cs
- TextBoxAutoCompleteSourceConverter.cs
- DSASignatureDeformatter.cs
- DynamicDocumentPaginator.cs
- HtmlElementCollection.cs
- AutomationPatternInfo.cs
- PeerNameRecord.cs
- ProtocolsSection.cs
- TemplatePagerField.cs
- XpsSerializerWriter.cs
- SqlWebEventProvider.cs
- BitmapPalette.cs
- KeyedHashAlgorithm.cs
- NetPeerTcpBindingElement.cs
- CodeGenHelper.cs
- ShutDownListener.cs
- hebrewshape.cs
- PackWebRequestFactory.cs
- coordinatorscratchpad.cs
- AsymmetricKeyExchangeFormatter.cs
- ProfileEventArgs.cs
- TableRow.cs
- ToolStripPanel.cs
- SchemaType.cs
- InvokePatternIdentifiers.cs
- TransportElement.cs
- OutputCacheSettings.cs
- NoneExcludedImageIndexConverter.cs
- FactorySettingsElement.cs
- PkcsMisc.cs
- NotSupportedException.cs
- ReadOnlyKeyedCollection.cs
- RegistryExceptionHelper.cs
- XmlSchemaInferenceException.cs
- QilPatternVisitor.cs
- AbstractSvcMapFileLoader.cs
- LocalValueEnumerator.cs
- Events.cs
- XmlAttributeAttribute.cs
- PostBackOptions.cs
- WorkflowServiceNamespace.cs
- DesignerActionItem.cs
- _TransmitFileOverlappedAsyncResult.cs
- WindowsStartMenu.cs
- Ray3DHitTestResult.cs
- NTAccount.cs
- BitSet.cs
- XmlWriterTraceListener.cs
- WebControlAdapter.cs
- CompilerGeneratedAttribute.cs
- ZipPackagePart.cs
- ValidationHelper.cs
- XmlChildNodes.cs
- _AcceptOverlappedAsyncResult.cs
- StringValidator.cs
- TraceLevelStore.cs
- CultureInfoConverter.cs
- StringSource.cs
- BindStream.cs
- Debug.cs
- ToolBarTray.cs
- SmiRecordBuffer.cs
- WorkflowTraceTransfer.cs
- bindurihelper.cs
- TagMapInfo.cs
- messageonlyhwndwrapper.cs
- RetrieveVirtualItemEventArgs.cs
- HierarchicalDataSourceControl.cs
- DesignerActionList.cs
- MarkupObject.cs
- IconConverter.cs
- DataGridViewLinkCell.cs
- Mutex.cs
- FixedBufferAttribute.cs
- CodePageUtils.cs
- ProfileManager.cs
- XPathNavigator.cs
- AssemblyContextControlItem.cs
- EventLogTraceListener.cs
- BoundPropertyEntry.cs
- ItemPager.cs
- ImageField.cs
- RelationshipDetailsRow.cs
- SortFieldComparer.cs
- X509ChainElement.cs
- TreeBuilderBamlTranslator.cs
- BidOverLoads.cs
- ProgressBar.cs
- TextTrailingCharacterEllipsis.cs
- BypassElement.cs
- AssemblyAssociatedContentFileAttribute.cs
- DetailsViewInsertedEventArgs.cs
- XmlBinaryWriter.cs
- DataGridRelationshipRow.cs
- DataComponentNameHandler.cs
- XPathScanner.cs
- DownloadProgressEventArgs.cs
- StickyNoteAnnotations.cs