Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 5 / 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
- BaseAsyncResult.cs
- PageSetupDialog.cs
- DataListItemCollection.cs
- ScrollData.cs
- DocumentXmlWriter.cs
- WebPartEditVerb.cs
- HotSpot.cs
- LogicalCallContext.cs
- RepeatBehavior.cs
- SortableBindingList.cs
- DataGridViewUtilities.cs
- QilTernary.cs
- MenuItemStyleCollection.cs
- IPEndPoint.cs
- prompt.cs
- ButtonBase.cs
- ParserExtension.cs
- OracleBFile.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataGridGeneralPage.cs
- XappLauncher.cs
- ObjectSecurityT.cs
- XPathEmptyIterator.cs
- XmlConvert.cs
- OdbcUtils.cs
- BitmapImage.cs
- BaseDataListPage.cs
- FlatButtonAppearance.cs
- DataBindingExpressionBuilder.cs
- HttpListenerPrefixCollection.cs
- Scanner.cs
- PersistChildrenAttribute.cs
- MessageHeader.cs
- PieceDirectory.cs
- ObjectAnimationUsingKeyFrames.cs
- PartialToken.cs
- safesecurityhelperavalon.cs
- Inline.cs
- AnnotationMap.cs
- ValidationEventArgs.cs
- SiteMapDataSource.cs
- IIS7UserPrincipal.cs
- SapiGrammar.cs
- InsufficientMemoryException.cs
- DataGridViewSelectedCellCollection.cs
- ApplicationSecurityManager.cs
- TextServicesCompartment.cs
- WindowsToolbar.cs
- PeerToPeerException.cs
- FieldBuilder.cs
- ContractMapping.cs
- VolatileEnlistmentState.cs
- NativeCompoundFileAPIs.cs
- IntMinMaxAggregationOperator.cs
- DrawingImage.cs
- BaseTreeIterator.cs
- ObjectIDGenerator.cs
- SecurityPermission.cs
- ServiceHostingEnvironment.cs
- OdbcRowUpdatingEvent.cs
- Calendar.cs
- ConstructorBuilder.cs
- SHA256.cs
- _LoggingObject.cs
- FileNotFoundException.cs
- PassportAuthentication.cs
- ComboBoxRenderer.cs
- Transactions.cs
- StreamReader.cs
- Thickness.cs
- EventLogConfiguration.cs
- Splitter.cs
- UITypeEditors.cs
- ResourceContainer.cs
- CorrelationManager.cs
- ArrayExtension.cs
- SiteMapNodeCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- XmlObjectSerializerWriteContext.cs
- OrderingQueryOperator.cs
- ToolStripDropTargetManager.cs
- XmlSchemas.cs
- GeneralTransform3DGroup.cs
- BindingContext.cs
- DataStreamFromComStream.cs
- ThicknessAnimationUsingKeyFrames.cs
- ListViewItemMouseHoverEvent.cs
- WebPartHelpVerb.cs
- SystemFonts.cs
- DataStorage.cs
- XmlSchemaCollection.cs
- ShaderEffect.cs
- SmiTypedGetterSetter.cs
- ConfigXmlCDataSection.cs
- XsdBuilder.cs
- KeyConstraint.cs
- HtmlElement.cs
- ControlValuePropertyAttribute.cs
- SoapFormatter.cs
- PageParser.cs