Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CustomServiceCredentials.cs
- Function.cs
- SerializationFieldInfo.cs
- WindowsMenu.cs
- HGlobalSafeHandle.cs
- SevenBitStream.cs
- PropertyTab.cs
- DBAsyncResult.cs
- IntPtr.cs
- XmlDocumentFragment.cs
- DataServiceCollectionOfT.cs
- TypeListConverter.cs
- StaticFileHandler.cs
- X509ClientCertificateAuthentication.cs
- PostBackTrigger.cs
- Overlapped.cs
- HtmlTableRow.cs
- MenuRenderer.cs
- HttpRuntimeSection.cs
- LabelDesigner.cs
- ModelFactory.cs
- ValidationEventArgs.cs
- EntityDesignerUtils.cs
- MasterPageCodeDomTreeGenerator.cs
- XsdBuildProvider.cs
- FolderNameEditor.cs
- ParseElementCollection.cs
- CqlParserHelpers.cs
- WriteTimeStream.cs
- UserPreferenceChangedEventArgs.cs
- SharedStatics.cs
- BaseCAMarshaler.cs
- DataGridViewCheckBoxColumn.cs
- SoapSchemaExporter.cs
- IpcClientChannel.cs
- AutomationPatternInfo.cs
- LinkDesigner.cs
- WriteTimeStream.cs
- Path.cs
- TabItemAutomationPeer.cs
- JsonQNameDataContract.cs
- AudioFileOut.cs
- AutoSizeToolBoxItem.cs
- CommonGetThemePartSize.cs
- RadioButtonList.cs
- ThumbAutomationPeer.cs
- ObjectHandle.cs
- RestHandlerFactory.cs
- LoginView.cs
- Inline.cs
- KeyPressEvent.cs
- JoinElimination.cs
- ResourcePermissionBase.cs
- SqlTransaction.cs
- ProvidersHelper.cs
- COM2ColorConverter.cs
- RijndaelCryptoServiceProvider.cs
- linebase.cs
- DPCustomTypeDescriptor.cs
- SiteMapDataSource.cs
- AttachmentCollection.cs
- ButtonBase.cs
- TextBlock.cs
- SerializationHelper.cs
- ManagedCodeMarkers.cs
- OnOperation.cs
- SectionInput.cs
- SchemaImporterExtension.cs
- StronglyTypedResourceBuilder.cs
- RTLAwareMessageBox.cs
- KeySplineConverter.cs
- ButtonChrome.cs
- EnumerableRowCollection.cs
- FileUtil.cs
- Block.cs
- OdbcParameterCollection.cs
- HtmlContainerControl.cs
- PathSegmentCollection.cs
- HostingEnvironment.cs
- DPTypeDescriptorContext.cs
- AsymmetricKeyExchangeDeformatter.cs
- DebugView.cs
- DnsEndPoint.cs
- ModelTypeConverter.cs
- ToolStripOverflowButton.cs
- QueryInterceptorAttribute.cs
- unitconverter.cs
- WindowsGraphics.cs
- OrderedDictionaryStateHelper.cs
- ObjectStateFormatter.cs
- ZipIOCentralDirectoryFileHeader.cs
- ColumnResizeUndoUnit.cs
- TextPointerBase.cs
- WaitingCursor.cs
- RowUpdatingEventArgs.cs
- Configuration.cs
- NestedContainer.cs
- PeerApplication.cs
- SyndicationFeedFormatter.cs
- StrokeNodeOperations.cs