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
- SerializationAttributes.cs
- X509Chain.cs
- IncrementalReadDecoders.cs
- StyleBamlTreeBuilder.cs
- SchemaAttDef.cs
- DataGridViewComboBoxEditingControl.cs
- ProxyBuilder.cs
- AuthenticationSection.cs
- CallSite.cs
- Reference.cs
- ChannelReliableSession.cs
- ImageDrawing.cs
- InvokeProviderWrapper.cs
- SystemTcpStatistics.cs
- TextEditorParagraphs.cs
- ListItemCollection.cs
- ProjectionPlanCompiler.cs
- FeatureAttribute.cs
- AspNetSynchronizationContext.cs
- DataControlField.cs
- TransportChannelListener.cs
- Clipboard.cs
- RefType.cs
- ObjectDisposedException.cs
- ModelItemCollection.cs
- JoinElimination.cs
- OdbcConnectionStringbuilder.cs
- BitmapMetadataEnumerator.cs
- OutputCacheSection.cs
- SystemInformation.cs
- TextElementEnumerator.cs
- RelationshipConstraintValidator.cs
- srgsitem.cs
- IconConverter.cs
- DataTableMapping.cs
- Polygon.cs
- DocumentGridContextMenu.cs
- TextStore.cs
- PartitionResolver.cs
- NativeMethods.cs
- SignedXml.cs
- CompoundFileStorageReference.cs
- RouteData.cs
- MissingMethodException.cs
- ToolStripSeparatorRenderEventArgs.cs
- IsolatedStorageFilePermission.cs
- SpeechUI.cs
- DataServiceEntityAttribute.cs
- FormsAuthenticationUserCollection.cs
- DesignerCommandAdapter.cs
- ClosableStream.cs
- FixUpCollection.cs
- DynamicArgumentDialog.cs
- ProjectionPathSegment.cs
- parserscommon.cs
- GiveFeedbackEvent.cs
- DesignerContextDescriptor.cs
- NamedElement.cs
- GridViewRowCollection.cs
- ResXFileRef.cs
- EntityDataSourceEntityTypeFilterItem.cs
- WebPartConnectionsCancelVerb.cs
- Overlapped.cs
- EntityConnectionStringBuilderItem.cs
- ColorInterpolationModeValidation.cs
- CodeSubDirectory.cs
- TransportationConfigurationTypeInstallComponent.cs
- ResourcePermissionBase.cs
- bidPrivateBase.cs
- _ConnectOverlappedAsyncResult.cs
- OleDbSchemaGuid.cs
- Geometry.cs
- TypeValidationEventArgs.cs
- AutomationEvent.cs
- _TimerThread.cs
- XmlSchemaInferenceException.cs
- MetadataItemCollectionFactory.cs
- DbLambda.cs
- TdsParser.cs
- DependencyPropertyChangedEventArgs.cs
- UnsafeNativeMethods.cs
- XslAst.cs
- XmlNodeReader.cs
- BoolLiteral.cs
- CustomErrorsSectionWrapper.cs
- WmlSelectionListAdapter.cs
- TypeBuilder.cs
- MarkupCompilePass2.cs
- BasicExpandProvider.cs
- PropertyValueChangedEvent.cs
- SqlError.cs
- DataMisalignedException.cs
- CacheChildrenQuery.cs
- User.cs
- StructuralType.cs
- ButtonChrome.cs
- PageCache.cs
- ListenDesigner.cs
- WinEventQueueItem.cs
- BaseTransportHeaders.cs