Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 2 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOModeEnforcingStream.cs
- Int32Storage.cs
- SslStreamSecurityUpgradeProvider.cs
- PermissionAttributes.cs
- CodeDirectiveCollection.cs
- MatrixTransform.cs
- JournalEntry.cs
- BinaryFormatterWriter.cs
- TranslateTransform3D.cs
- WebPartAddingEventArgs.cs
- DesignerRegionMouseEventArgs.cs
- CellPartitioner.cs
- EntityContainer.cs
- Choices.cs
- QueryAsyncResult.cs
- SspiSecurityTokenParameters.cs
- Utils.cs
- SqlDataSourceView.cs
- Documentation.cs
- XamlStyleSerializer.cs
- CallbackHandler.cs
- KeysConverter.cs
- EntryWrittenEventArgs.cs
- TypeDependencyAttribute.cs
- NativeMethods.cs
- XmlFormatWriterGenerator.cs
- Point3DKeyFrameCollection.cs
- StylesEditorDialog.cs
- EntityProviderServices.cs
- OracleParameterBinding.cs
- ACL.cs
- SimpleRecyclingCache.cs
- OSFeature.cs
- HWStack.cs
- EventPropertyMap.cs
- AnimationTimeline.cs
- HostingPreferredMapPath.cs
- HttpHandlersSection.cs
- RecipientInfo.cs
- SerializationSectionGroup.cs
- GridViewAutomationPeer.cs
- BrowsableAttribute.cs
- QueueProcessor.cs
- InvokePatternIdentifiers.cs
- SimpleLine.cs
- ComplusEndpointConfigContainer.cs
- FontStretches.cs
- UnsafeNativeMethodsPenimc.cs
- DocumentOutline.cs
- BoolExpressionVisitors.cs
- Range.cs
- DesignConnection.cs
- Events.cs
- CollectionViewGroup.cs
- SudsWriter.cs
- TextBoxLine.cs
- SourceChangedEventArgs.cs
- ErrorWebPart.cs
- DurationConverter.cs
- PointCollectionConverter.cs
- TextUtf8RawTextWriter.cs
- SmiTypedGetterSetter.cs
- BuildProviderAppliesToAttribute.cs
- TextMetrics.cs
- InternalDispatchObject.cs
- DesignerTransactionCloseEvent.cs
- DataPagerFieldItem.cs
- commandenforcer.cs
- NameTable.cs
- FileLogRecordHeader.cs
- Resources.Designer.cs
- MLangCodePageEncoding.cs
- ToolStripRendererSwitcher.cs
- SynchronizationScope.cs
- SafeArchiveContext.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ProtocolElementCollection.cs
- MailBnfHelper.cs
- MsmqAuthenticationMode.cs
- WebScriptClientGenerator.cs
- Evidence.cs
- RewritingValidator.cs
- AccessedThroughPropertyAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridTablesFactory.cs
- TreeNodeStyleCollectionEditor.cs
- __TransparentProxy.cs
- XmlFormatExtensionPointAttribute.cs
- LinqDataView.cs
- ImageUrlEditor.cs
- WindowsComboBox.cs
- ListViewItem.cs
- ListViewDeletedEventArgs.cs
- oledbmetadatacollectionnames.cs
- MatrixTransform3D.cs
- FontStyles.cs
- AnnotationElement.cs
- ErrorActivity.cs
- RedBlackList.cs
- AuthenticationException.cs