Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AspCompat.cs
- WebScriptMetadataMessageEncoderFactory.cs
- RuleRef.cs
- MsmqAuthenticationMode.cs
- SystemWebCachingSectionGroup.cs
- EdmTypeAttribute.cs
- PreProcessor.cs
- ActivationServices.cs
- WindowsUpDown.cs
- StructuralComparisons.cs
- DataGridHyperlinkColumn.cs
- DataConnectionHelper.cs
- ProcessModelSection.cs
- DataTableTypeConverter.cs
- XmlSchemaCollection.cs
- AttributeXamlType.cs
- SearchForVirtualItemEventArgs.cs
- SymmetricKeyWrap.cs
- InputLanguageCollection.cs
- CategoryNameCollection.cs
- ImageAutomationPeer.cs
- ElementNotAvailableException.cs
- XmlHierarchicalEnumerable.cs
- DuplicateWaitObjectException.cs
- SystemIcmpV6Statistics.cs
- HttpHandlerActionCollection.cs
- AvTraceFormat.cs
- TTSEngineTypes.cs
- IntSecurity.cs
- WpfGeneratedKnownProperties.cs
- RequestQueryParser.cs
- FieldTemplateFactory.cs
- GeneralTransformGroup.cs
- BinaryUtilClasses.cs
- UpdateRecord.cs
- GroupJoinQueryOperator.cs
- ListControlBoundActionList.cs
- DocumentPageTextView.cs
- DrawingGroup.cs
- TextBounds.cs
- SqlExpander.cs
- JulianCalendar.cs
- MediaPlayer.cs
- CompositeScriptReferenceEventArgs.cs
- TransferMode.cs
- XmlElementList.cs
- ReflectTypeDescriptionProvider.cs
- InteropBitmapSource.cs
- CodeCompileUnit.cs
- Vector3DCollection.cs
- ConfigXmlSignificantWhitespace.cs
- BasicHttpSecurityMode.cs
- StreamGeometry.cs
- CriticalExceptions.cs
- HandleTable.cs
- Group.cs
- Currency.cs
- Point3DAnimation.cs
- StatusBarPanel.cs
- NetworkCredential.cs
- SynchronizationScope.cs
- TableLayoutColumnStyleCollection.cs
- XhtmlConformanceSection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- SynchronizationValidator.cs
- PageTheme.cs
- IntegerCollectionEditor.cs
- PrimarySelectionGlyph.cs
- SqlWorkflowPersistenceService.cs
- HostAdapter.cs
- CodeArrayCreateExpression.cs
- LocalFileSettingsProvider.cs
- ThaiBuddhistCalendar.cs
- IPPacketInformation.cs
- DataGridViewCellEventArgs.cs
- securitycriticaldataClass.cs
- OdbcParameterCollection.cs
- ProtocolsConfigurationHandler.cs
- HttpHandlerAction.cs
- InkCollectionBehavior.cs
- ReaderOutput.cs
- SuppressMessageAttribute.cs
- ContentPropertyAttribute.cs
- RectKeyFrameCollection.cs
- Memoizer.cs
- StringReader.cs
- EventProvider.cs
- BooleanFacetDescriptionElement.cs
- DictionaryContent.cs
- ComboBoxDesigner.cs
- XmlEntityReference.cs
- ReadWriteObjectLock.cs
- SortExpressionBuilder.cs
- IIS7WorkerRequest.cs
- XmlWriter.cs
- SpellerStatusTable.cs
- ViewgenContext.cs
- TypeUtil.cs
- XPathAxisIterator.cs