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
- ColumnMapTranslator.cs
- BinHexDecoder.cs
- SystemIPGlobalProperties.cs
- XmlC14NWriter.cs
- MessageEncoder.cs
- XamlInt32CollectionSerializer.cs
- SEHException.cs
- Logging.cs
- TreeNode.cs
- CheckableControlBaseAdapter.cs
- Crc32Helper.cs
- OutputCacheModule.cs
- StorageSetMapping.cs
- CurrentChangedEventManager.cs
- ActivityInstance.cs
- MetadataPropertyCollection.cs
- HttpHandlerActionCollection.cs
- NullableDecimalAverageAggregationOperator.cs
- ControlParameter.cs
- OptimalBreakSession.cs
- EncodingInfo.cs
- ColorConvertedBitmap.cs
- TaskFormBase.cs
- XmlSiteMapProvider.cs
- DesignerDataSchemaClass.cs
- _OverlappedAsyncResult.cs
- RelationshipEndCollection.cs
- StringArrayEditor.cs
- SingletonConnectionReader.cs
- ExtendedPropertyDescriptor.cs
- DataGridViewCellStyleConverter.cs
- CacheAxisQuery.cs
- Figure.cs
- ExtendedProtectionPolicy.cs
- SQLDouble.cs
- UrlMapping.cs
- InvokeProviderWrapper.cs
- GCHandleCookieTable.cs
- Assert.cs
- TextViewDesigner.cs
- DataFieldEditor.cs
- ChildrenQuery.cs
- TdsParser.cs
- HTTPNotFoundHandler.cs
- ShapingWorkspace.cs
- Ray3DHitTestResult.cs
- MetadataHelper.cs
- SemaphoreFullException.cs
- EmbossBitmapEffect.cs
- HtmlControlPersistable.cs
- ConfigurationSectionGroupCollection.cs
- SystemInformation.cs
- remotingproxy.cs
- PromptEventArgs.cs
- CompoundFileStorageReference.cs
- InvalidProgramException.cs
- GlobalEventManager.cs
- HttpResponseInternalWrapper.cs
- ActivityPreviewDesigner.cs
- WorkflowValidationFailedException.cs
- DrawingBrush.cs
- HtmlHistory.cs
- CodeAttributeArgument.cs
- Trigger.cs
- WebPartConnectionsEventArgs.cs
- TypeHelpers.cs
- CodeAttributeDeclarationCollection.cs
- remotingproxy.cs
- versioninfo.cs
- CachedTypeface.cs
- ParseHttpDate.cs
- MetaChildrenColumn.cs
- CqlWriter.cs
- BatchServiceHost.cs
- CodeStatementCollection.cs
- RequiredFieldValidator.cs
- DoWorkEventArgs.cs
- ComboBox.cs
- StaticResourceExtension.cs
- CompilerGeneratedAttribute.cs
- PartialCachingControl.cs
- ProtectedConfigurationSection.cs
- ObjectCloneHelper.cs
- webeventbuffer.cs
- BulletedList.cs
- WebPartDisplayModeCollection.cs
- RequestCacheManager.cs
- VirtualPathProvider.cs
- ButtonStandardAdapter.cs
- ProxyAttribute.cs
- DbConnectionPool.cs
- MetadataCache.cs
- ComplexPropertyEntry.cs
- SqlDataRecord.cs
- DateTimeParse.cs
- FormsAuthenticationUserCollection.cs
- ServiceOperationParameter.cs
- DateTime.cs
- sqlstateclientmanager.cs
- SendKeys.cs