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
- LogicalTreeHelper.cs
- BufferBuilder.cs
- AppManager.cs
- Parser.cs
- WaitHandleCannotBeOpenedException.cs
- WeakReferenceEnumerator.cs
- NavigateEvent.cs
- SQLInt16.cs
- UnmanagedMarshal.cs
- WinEventTracker.cs
- ButtonChrome.cs
- ScrollBarAutomationPeer.cs
- HttpWebRequest.cs
- DefaultBinder.cs
- WebRequestModuleElementCollection.cs
- NotCondition.cs
- ToolbarAUtomationPeer.cs
- ChangeNode.cs
- LineServicesCallbacks.cs
- HierarchicalDataTemplate.cs
- TransmissionStrategy.cs
- SystemIcmpV4Statistics.cs
- EventLogPermission.cs
- HostedElements.cs
- DbConnectionPoolIdentity.cs
- DummyDataSource.cs
- UniformGrid.cs
- NumberFormatInfo.cs
- XPathScanner.cs
- OracleCommand.cs
- DesignerTransactionCloseEvent.cs
- Transform.cs
- SafePEFileHandle.cs
- ValidatorCollection.cs
- StateDesigner.CommentLayoutGlyph.cs
- WebBrowserContainer.cs
- remotingproxy.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlWhitespace.cs
- wmiutil.cs
- ParameterReplacerVisitor.cs
- AxDesigner.cs
- SQLInt64Storage.cs
- GenericWebPart.cs
- GCHandleCookieTable.cs
- SettingsProperty.cs
- StickyNote.cs
- ServerIdentity.cs
- EdmFunction.cs
- ChangeToolStripParentVerb.cs
- Pair.cs
- XmlSchemaComplexContentExtension.cs
- ConfigurationManager.cs
- Serializer.cs
- SimpleModelProvider.cs
- QueryGeneratorBase.cs
- IdnMapping.cs
- ResourcePart.cs
- FontNamesConverter.cs
- DataGridCell.cs
- Span.cs
- AutoFocusStyle.xaml.cs
- XmlWhitespace.cs
- RectAnimation.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BaseCollection.cs
- HandlerFactoryCache.cs
- XmlSerializer.cs
- IImplicitResourceProvider.cs
- SmtpException.cs
- Pair.cs
- LineUtil.cs
- RtfToXamlReader.cs
- ZipPackagePart.cs
- Normalization.cs
- Task.cs
- ClickablePoint.cs
- XPathBuilder.cs
- X509ChainPolicy.cs
- precedingquery.cs
- EntityCommand.cs
- GenerateHelper.cs
- ConfigurationException.cs
- TargetParameterCountException.cs
- SortedSet.cs
- IisTraceListener.cs
- DataRowCollection.cs
- DesignerActionKeyboardBehavior.cs
- MsmqOutputSessionChannel.cs
- ProcessHostFactoryHelper.cs
- CompositeFontFamily.cs
- EntityDataReader.cs
- SmtpMail.cs
- XmlCountingReader.cs
- PauseStoryboard.cs
- SHA384Managed.cs
- DocumentViewerHelper.cs
- WorkflowDefinitionDispenser.cs
- ISessionStateStore.cs
- ToolboxCategoryItems.cs