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
- Helper.cs
- ProfileServiceManager.cs
- MetafileHeaderWmf.cs
- EntityClientCacheEntry.cs
- WpfSharedBamlSchemaContext.cs
- BackStopAuthenticationModule.cs
- QueryInterceptorAttribute.cs
- CounterSampleCalculator.cs
- OutputCacheProfileCollection.cs
- ListViewItemSelectionChangedEvent.cs
- NonParentingControl.cs
- JournalEntryStack.cs
- X509Certificate.cs
- AsymmetricSignatureDeformatter.cs
- IncrementalReadDecoders.cs
- KnownTypesHelper.cs
- TraceUtils.cs
- ExpressionBuilder.cs
- XslAstAnalyzer.cs
- StrokeCollectionConverter.cs
- SortQuery.cs
- Throw.cs
- NamespaceList.cs
- SrgsToken.cs
- _NetRes.cs
- UICuesEvent.cs
- XPathConvert.cs
- Pkcs7Recipient.cs
- SoapSchemaExporter.cs
- RegexRunner.cs
- CodeDOMUtility.cs
- IncomingWebRequestContext.cs
- AndCondition.cs
- StyleModeStack.cs
- CompileLiteralTextParser.cs
- FunctionCommandText.cs
- CTreeGenerator.cs
- XmlComment.cs
- PathFigureCollection.cs
- PartitionerStatic.cs
- Pen.cs
- HierarchicalDataBoundControl.cs
- HttpTransportSecurityElement.cs
- SecureStringHasher.cs
- ParamArrayAttribute.cs
- RegexGroupCollection.cs
- CapiNative.cs
- SubclassTypeValidator.cs
- ControlBuilder.cs
- DefaultPropertyAttribute.cs
- HttpDebugHandler.cs
- UnmanagedMarshal.cs
- WebPartDisplayModeCollection.cs
- HyperLink.cs
- SHA384.cs
- RegexStringValidator.cs
- AnnotationComponentManager.cs
- DataObjectMethodAttribute.cs
- PLINQETWProvider.cs
- DataTableClearEvent.cs
- DecimalSumAggregationOperator.cs
- PointConverter.cs
- RtfNavigator.cs
- TransformProviderWrapper.cs
- CryptoApi.cs
- PopOutPanel.cs
- RadioButton.cs
- SystemUdpStatistics.cs
- BitmapEffectDrawingContextWalker.cs
- ListBase.cs
- EventHandlersStore.cs
- DSASignatureDeformatter.cs
- SqlClientFactory.cs
- HighlightVisual.cs
- AsyncOperationManager.cs
- IFormattable.cs
- VirtualizingStackPanel.cs
- RectAnimationBase.cs
- HotSpotCollection.cs
- DoubleLinkListEnumerator.cs
- ServerValidateEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- WindowsIPAddress.cs
- FloaterParagraph.cs
- ShaperBuffers.cs
- RealizedColumnsBlock.cs
- SspiHelper.cs
- ButtonStandardAdapter.cs
- HttpWebResponse.cs
- StringStorage.cs
- _ScatterGatherBuffers.cs
- TrustLevelCollection.cs
- DependencyProperty.cs
- CodeCommentStatementCollection.cs
- DetailsViewPageEventArgs.cs
- LinkArea.cs
- FixUpCollection.cs
- ItemAutomationPeer.cs
- UnsettableComboBox.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs