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
- SqlCacheDependencyDatabase.cs
- BrowserTree.cs
- Accessible.cs
- SignatureHelper.cs
- FactoryGenerator.cs
- sqlser.cs
- ChangeTracker.cs
- _IPv6Address.cs
- ConfigurationSchemaErrors.cs
- While.cs
- XmlBinaryReader.cs
- DataControlCommands.cs
- WindowsTreeView.cs
- SamlAuthorityBinding.cs
- NativeStructs.cs
- SrgsElement.cs
- XmlUrlEditor.cs
- EncryptedReference.cs
- BamlTreeMap.cs
- LicenseManager.cs
- DynamicPropertyReader.cs
- XhtmlConformanceSection.cs
- ConsoleTraceListener.cs
- Window.cs
- ListViewDeletedEventArgs.cs
- AuthenticationConfig.cs
- XmlCompatibilityReader.cs
- Content.cs
- ComponentResourceKey.cs
- ProcessModule.cs
- AttributeQuery.cs
- AppearanceEditorPart.cs
- FixedHyperLink.cs
- DataControlField.cs
- BrowserCapabilitiesCompiler.cs
- DBAsyncResult.cs
- CodeTryCatchFinallyStatement.cs
- EntityViewGenerationAttribute.cs
- Listbox.cs
- TableSectionStyle.cs
- _LocalDataStoreMgr.cs
- ResourceManager.cs
- WriterOutput.cs
- EventLog.cs
- StrongTypingException.cs
- ContextBase.cs
- AnimationStorage.cs
- ContainerAction.cs
- hresults.cs
- ProcessHostMapPath.cs
- SQLMembershipProvider.cs
- NavigationProgressEventArgs.cs
- XsdDuration.cs
- TTSVoice.cs
- MailSettingsSection.cs
- Misc.cs
- GPPOINT.cs
- UIElementPropertyUndoUnit.cs
- SettingsPropertyIsReadOnlyException.cs
- RequestQueryParser.cs
- TreeViewCancelEvent.cs
- ModuleElement.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SQLDateTime.cs
- PrtTicket_Public.cs
- ApplicationActivator.cs
- Translator.cs
- CollectionDataContractAttribute.cs
- TreeNodeSelectionProcessor.cs
- UncommonField.cs
- Tool.cs
- SqlDataSourceAdvancedOptionsForm.cs
- CopyNamespacesAction.cs
- DataPager.cs
- LifetimeMonitor.cs
- ExpanderAutomationPeer.cs
- KeyInterop.cs
- StringValueSerializer.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ConstructorBuilder.cs
- DrawingImage.cs
- WebBrowserUriTypeConverter.cs
- LOSFormatter.cs
- SizeChangedInfo.cs
- securitycriticaldata.cs
- FileInfo.cs
- Helper.cs
- FixedFindEngine.cs
- ImmComposition.cs
- PreservationFileWriter.cs
- SingletonConnectionReader.cs
- CryptoStream.cs
- AnnotationAdorner.cs
- TrackingProfileSerializer.cs
- StateMachineTimers.cs
- SqlRecordBuffer.cs
- CheckBoxList.cs
- MsmqBindingBase.cs
- AdCreatedEventArgs.cs
- TextTreeRootTextBlock.cs