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
- BamlBinaryReader.cs
- SqlStream.cs
- CatalogZoneBase.cs
- mda.cs
- Directory.cs
- Query.cs
- Rijndael.cs
- InfoCardSymmetricCrypto.cs
- NetworkInterface.cs
- PointAnimationBase.cs
- DiscardableAttribute.cs
- GridView.cs
- TransactionalPackage.cs
- HttpAsyncResult.cs
- UIElement3DAutomationPeer.cs
- LinearGradientBrush.cs
- StandardCommands.cs
- XmlDomTextWriter.cs
- ToolStripRenderer.cs
- EmptyWithCancelationCheckWorkItem.cs
- DataException.cs
- ButtonAutomationPeer.cs
- WebPartCatalogCloseVerb.cs
- CategoryAttribute.cs
- coordinatorfactory.cs
- COAUTHIDENTITY.cs
- SqlParameterCollection.cs
- TextInfo.cs
- _IPv6Address.cs
- ToggleProviderWrapper.cs
- HwndSubclass.cs
- CodeTypeDeclaration.cs
- WebPartConnectionsConnectVerb.cs
- ProfileSettings.cs
- PrimitiveRenderer.cs
- SetIterators.cs
- FactoryGenerator.cs
- CodeActivityMetadata.cs
- XmlSchemaAttributeGroupRef.cs
- ValidationEventArgs.cs
- IPipelineRuntime.cs
- ActivationArguments.cs
- CodeTypeDeclaration.cs
- OneOfTypeConst.cs
- ExtendedProperty.cs
- TargetControlTypeCache.cs
- DataServiceContext.cs
- BindingListCollectionView.cs
- RoutedEventHandlerInfo.cs
- XmlPropertyBag.cs
- figurelengthconverter.cs
- ContextMarshalException.cs
- OutOfProcStateClientManager.cs
- WebColorConverter.cs
- IdentitySection.cs
- UIAgentAsyncEndRequest.cs
- MenuItemCollection.cs
- KeyValuePairs.cs
- IgnoreSectionHandler.cs
- MergablePropertyAttribute.cs
- BitmapFrameDecode.cs
- Descriptor.cs
- SafeNativeMemoryHandle.cs
- Decoder.cs
- IPHostEntry.cs
- TrailingSpaceComparer.cs
- DataGridViewRowsAddedEventArgs.cs
- DrawingVisualDrawingContext.cs
- SimpleLine.cs
- AnnotationDocumentPaginator.cs
- ScriptIgnoreAttribute.cs
- ReturnEventArgs.cs
- IntegerFacetDescriptionElement.cs
- SiteMapNodeItem.cs
- ConstantSlot.cs
- Command.cs
- XslUrlEditor.cs
- FileDataSourceCache.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TrustManager.cs
- DataRowComparer.cs
- Size.cs
- DbProviderServices.cs
- FlowSwitchDesigner.xaml.cs
- UInt32Converter.cs
- TimeStampChecker.cs
- SiteMap.cs
- QueryCacheManager.cs
- Wildcard.cs
- SinglePageViewer.cs
- FusionWrap.cs
- COM2Properties.cs
- ParameterToken.cs
- XmlCodeExporter.cs
- SeekStoryboard.cs
- ProfilePropertySettings.cs
- ClockController.cs
- XmlSchemaSimpleTypeUnion.cs
- SmtpAuthenticationManager.cs
- TextElement.cs