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
- DelegateHelpers.cs
- ClonableStack.cs
- PenContexts.cs
- ResourceSet.cs
- FormattedText.cs
- UndoEngine.cs
- RepeaterItemCollection.cs
- ProtectedProviderSettings.cs
- View.cs
- WebPartUserCapability.cs
- ThicknessAnimation.cs
- SystemUdpStatistics.cs
- TextOutput.cs
- XmlUTF8TextReader.cs
- ThreadStartException.cs
- SqlExpressionNullability.cs
- CultureInfoConverter.cs
- PointUtil.cs
- RepeaterItem.cs
- BindingCollection.cs
- ModelPropertyCollectionImpl.cs
- UpDownEvent.cs
- WindowsButton.cs
- COM2FontConverter.cs
- CodeCompileUnit.cs
- Process.cs
- XsltConvert.cs
- SimpleHandlerBuildProvider.cs
- ConnectionStringsExpressionBuilder.cs
- TemplateControlBuildProvider.cs
- DateTimeConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SessionPageStatePersister.cs
- FolderBrowserDialogDesigner.cs
- StorageComplexTypeMapping.cs
- FileRecordSequenceCompletedAsyncResult.cs
- BrushValueSerializer.cs
- RegistryExceptionHelper.cs
- ExecutionEngineException.cs
- ScrollViewerAutomationPeer.cs
- TextTreeText.cs
- MenuRenderer.cs
- RegionData.cs
- DataGridViewColumn.cs
- ProtocolElementCollection.cs
- EntityModelSchemaGenerator.cs
- RunInstallerAttribute.cs
- Win32.cs
- VerificationAttribute.cs
- ITextView.cs
- DataSetViewSchema.cs
- RowBinding.cs
- DBCommand.cs
- TraceHandlerErrorFormatter.cs
- HtmlTableCell.cs
- Crc32Helper.cs
- BaseTreeIterator.cs
- RectAnimation.cs
- HandlerMappingMemo.cs
- TreeViewBindingsEditor.cs
- MsdtcWrapper.cs
- SqlHelper.cs
- TemplatedMailWebEventProvider.cs
- AttributeEmitter.cs
- localization.cs
- PrintPreviewControl.cs
- CompoundFileStreamReference.cs
- XamlInt32CollectionSerializer.cs
- Renderer.cs
- Directory.cs
- TextPatternIdentifiers.cs
- DataGridViewButtonColumn.cs
- LostFocusEventManager.cs
- MultiByteCodec.cs
- __Filters.cs
- EdmConstants.cs
- DecimalAnimationUsingKeyFrames.cs
- EventMap.cs
- Encoding.cs
- SecurityManager.cs
- TreeIterator.cs
- Msec.cs
- PersistenceTypeAttribute.cs
- RectangleF.cs
- SafeCloseHandleCritical.cs
- WebBrowserHelper.cs
- CharUnicodeInfo.cs
- OleDbConnectionInternal.cs
- TemplatedWizardStep.cs
- SecurityDescriptor.cs
- Statements.cs
- BitVec.cs
- ExpressionsCollectionConverter.cs
- NonParentingControl.cs
- ClientScriptManagerWrapper.cs
- PasswordDeriveBytes.cs
- WebPartUserCapability.cs
- PaintEvent.cs
- RuleRefElement.cs
- XomlCompilerParameters.cs