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
- Oci.cs
- PartialTrustVisibleAssembly.cs
- _WinHttpWebProxyDataBuilder.cs
- EntityPropertyMappingAttribute.cs
- DesignBindingPicker.cs
- FunctionQuery.cs
- WSHttpSecurityElement.cs
- LayoutExceptionEventArgs.cs
- PolyBezierSegment.cs
- UInt32Storage.cs
- IFormattable.cs
- RoutedEvent.cs
- Variable.cs
- SqlInternalConnectionSmi.cs
- RelationshipDetailsRow.cs
- SafeBitVector32.cs
- NameValueFileSectionHandler.cs
- QueryRewriter.cs
- XamlToRtfWriter.cs
- AsymmetricAlgorithm.cs
- ProfileService.cs
- ErrorTableItemStyle.cs
- EditorZoneBase.cs
- RijndaelManagedTransform.cs
- AddInController.cs
- PackagePartCollection.cs
- ListViewGroupCollectionEditor.cs
- WinFormsUtils.cs
- WebException.cs
- EntityContainerAssociationSetEnd.cs
- ResourceType.cs
- XamlHostingConfiguration.cs
- DataBinder.cs
- UpdateException.cs
- ObjectPropertyMapping.cs
- WrappedKeySecurityToken.cs
- GPStream.cs
- TimeStampChecker.cs
- MaskDescriptors.cs
- ToolStripItemRenderEventArgs.cs
- ElementAtQueryOperator.cs
- HwndSubclass.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- CompressedStack.cs
- Interfaces.cs
- ToolStripDropDownMenu.cs
- ListBoxDesigner.cs
- DisplayNameAttribute.cs
- MembershipUser.cs
- SecureConversationVersion.cs
- QuotaExceededException.cs
- SafeViewOfFileHandle.cs
- WebPartExportVerb.cs
- MatrixStack.cs
- BasePattern.cs
- CryptoApi.cs
- RegisteredScript.cs
- FontFamilyValueSerializer.cs
- CodePageEncoding.cs
- ClientFormsAuthenticationCredentials.cs
- FixedSOMElement.cs
- InvokeMethodDesigner.xaml.cs
- DBDataPermissionAttribute.cs
- ADMembershipProvider.cs
- GridViewHeaderRowPresenter.cs
- FactoryGenerator.cs
- ContextBase.cs
- NavigationProperty.cs
- SessionStateModule.cs
- StringConcat.cs
- BuildResult.cs
- AuthorizationRule.cs
- DocumentPageViewAutomationPeer.cs
- ModuleBuilderData.cs
- DataGridRelationshipRow.cs
- RIPEMD160Managed.cs
- ProtocolsSection.cs
- ResourceManager.cs
- XamlTypeMapper.cs
- NotifyCollectionChangedEventArgs.cs
- CAGDesigner.cs
- TableSectionStyle.cs
- HttpRawResponse.cs
- OdbcPermission.cs
- ParallelLoopState.cs
- ping.cs
- DateTimeConverter2.cs
- SendKeys.cs
- CollectionEditorDialog.cs
- VoiceChangeEventArgs.cs
- NameValueConfigurationCollection.cs
- DnsEndPoint.cs
- UntrustedRecipientException.cs
- Size.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DeclarativeConditionsCollection.cs
- EastAsianLunisolarCalendar.cs
- DescendentsWalker.cs
- CaseStatement.cs
- ArgumentDirectionHelper.cs