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
- DbgCompiler.cs
- EventBuilder.cs
- SafeNativeMethodsCLR.cs
- SecurityUtils.cs
- ReceiveContextCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- Timer.cs
- StatusBarPanelClickEvent.cs
- CustomErrorsSectionWrapper.cs
- ChannelBinding.cs
- InputBuffer.cs
- DiscoveryServiceExtension.cs
- SafeRightsManagementQueryHandle.cs
- X509RawDataKeyIdentifierClause.cs
- BufferedResponseStream.cs
- WebPartConnectionsCloseVerb.cs
- ActiveXHost.cs
- ObjectStateFormatter.cs
- SystemException.cs
- ChameleonKey.cs
- EventToken.cs
- HtmlEncodedRawTextWriter.cs
- LogArchiveSnapshot.cs
- PageAsyncTaskManager.cs
- DelegateCompletionCallbackWrapper.cs
- DataShape.cs
- XmlSchemaAttributeGroupRef.cs
- Stopwatch.cs
- TripleDES.cs
- ToolZone.cs
- DataService.cs
- securestring.cs
- SendMessageRecord.cs
- EncodedStreamFactory.cs
- ThreadTrace.cs
- SafeEventLogWriteHandle.cs
- WebRequestModuleElementCollection.cs
- SectionUpdates.cs
- RequestDescription.cs
- ConfigurationManagerInternalFactory.cs
- WhitespaceRuleLookup.cs
- SelectedGridItemChangedEvent.cs
- SerializationAttributes.cs
- SecurityHeaderElementInferenceEngine.cs
- Profiler.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Rotation3D.cs
- CacheHelper.cs
- Fonts.cs
- EmbeddedMailObjectsCollection.cs
- DependencyPropertyKey.cs
- MessageBox.cs
- QilBinary.cs
- SimpleLine.cs
- _SSPISessionCache.cs
- PerformanceCounterManager.cs
- ToolStripOverflow.cs
- OLEDB_Util.cs
- FormsAuthenticationModule.cs
- PageRanges.cs
- XmlSchemaProviderAttribute.cs
- IncrementalHitTester.cs
- Context.cs
- CompressionTransform.cs
- Msmq.cs
- ConfigurationHandlersInstallComponent.cs
- ResourceCollectionInfo.cs
- DesignerAutoFormatCollection.cs
- FixedSOMImage.cs
- DecimalAnimationBase.cs
- TabControlToolboxItem.cs
- HtmlWindowCollection.cs
- FillBehavior.cs
- CursorConverter.cs
- IProvider.cs
- HijriCalendar.cs
- UnsafeNativeMethods.cs
- PeerSecurityHelpers.cs
- PackWebRequest.cs
- XmlMembersMapping.cs
- Hyperlink.cs
- DependencyPropertyHelper.cs
- UnsafeCollabNativeMethods.cs
- FilterRepeater.cs
- EntityDataSourceWrapperCollection.cs
- FolderNameEditor.cs
- ResourceExpressionEditor.cs
- TextBoxRenderer.cs
- FormsAuthenticationTicket.cs
- XmlTypeAttribute.cs
- ExpressionHelper.cs
- PtsHost.cs
- ButtonStandardAdapter.cs
- AmbientProperties.cs
- JpegBitmapDecoder.cs
- WeakHashtable.cs
- documentation.cs
- DataGridState.cs
- PeerIPHelper.cs
- ConfigXmlComment.cs