Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientBuildManagerCallback.cs
- Oid.cs
- OutputScopeManager.cs
- DrawTreeNodeEventArgs.cs
- Int32RectConverter.cs
- DataGridViewRowPostPaintEventArgs.cs
- PostBackOptions.cs
- PromptBuilder.cs
- QuestionEventArgs.cs
- CollectionAdapters.cs
- StringPropertyBuilder.cs
- XmlEntityReference.cs
- RepeatButtonAutomationPeer.cs
- SHA256.cs
- DataGridViewComboBoxColumnDesigner.cs
- _NTAuthentication.cs
- WmlPageAdapter.cs
- OpenTypeLayoutCache.cs
- InertiaTranslationBehavior.cs
- _TLSstream.cs
- ContentFileHelper.cs
- FastEncoderStatics.cs
- ComponentConverter.cs
- AnonymousIdentificationModule.cs
- EtwProvider.cs
- EventData.cs
- OleDbStruct.cs
- WebBrowserHelper.cs
- EntityDataSourceWrapperCollection.cs
- MiniConstructorInfo.cs
- StsCommunicationException.cs
- _Semaphore.cs
- Expression.cs
- SafeHandle.cs
- ObjectToken.cs
- CapabilitiesAssignment.cs
- CodePageEncoding.cs
- RuntimeConfigLKG.cs
- SHA256Managed.cs
- Compiler.cs
- _FixedSizeReader.cs
- CatalogPart.cs
- SystemPens.cs
- TextBoxView.cs
- UIntPtr.cs
- hresults.cs
- ConfigXmlWhitespace.cs
- SafeEventLogWriteHandle.cs
- ManipulationCompletedEventArgs.cs
- InlineObject.cs
- XmlDeclaration.cs
- ChannelSinkStacks.cs
- SqlFacetAttribute.cs
- InputLangChangeRequestEvent.cs
- SignatureHelper.cs
- CommonRemoteMemoryBlock.cs
- ActiveXSite.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SynchronizedRandom.cs
- Renderer.cs
- StylusShape.cs
- List.cs
- _UriSyntax.cs
- TextParagraph.cs
- RegistrationContext.cs
- SecurityAlgorithmSuite.cs
- TranslateTransform3D.cs
- CompositeFontFamily.cs
- PeerNearMe.cs
- CriticalExceptions.cs
- ZipQueryOperator.cs
- BitArray.cs
- CharConverter.cs
- PropertyTabChangedEvent.cs
- SrgsItemList.cs
- SqlDataSourceConfigureSortForm.cs
- Brush.cs
- ComponentChangingEvent.cs
- ContainerSelectorBehavior.cs
- Privilege.cs
- RsaSecurityToken.cs
- IIS7WorkerRequest.cs
- HWStack.cs
- TreeView.cs
- PieceDirectory.cs
- LinqDataView.cs
- FacetDescriptionElement.cs
- MarshalDirectiveException.cs
- Rss20ItemFormatter.cs
- XamlToRtfWriter.cs
- WebFormDesignerActionService.cs
- ReferenceAssemblyAttribute.cs
- XomlSerializationHelpers.cs
- DesignerHelpers.cs
- EDesignUtil.cs
- CoTaskMemHandle.cs
- EntitySqlQueryState.cs
- RemotingConfigParser.cs
- StorageComplexTypeMapping.cs
- HeaderedContentControl.cs