Code:
/ FX-1434 / FX-1434 / 1.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
- SqlBuffer.cs
- TypeLibConverter.cs
- EntitySqlQueryCacheKey.cs
- PerformanceCounterNameAttribute.cs
- XmlWriter.cs
- ObjectStateFormatter.cs
- ControlAdapter.cs
- XmlTypeAttribute.cs
- BmpBitmapDecoder.cs
- CharacterString.cs
- ServiceErrorHandler.cs
- WorkflowApplicationCompletedEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- TrustVersion.cs
- RefType.cs
- BinaryCommonClasses.cs
- WebPermission.cs
- PenContext.cs
- BuildProvider.cs
- ObjectDataSource.cs
- ImageResources.Designer.cs
- DefaultEventAttribute.cs
- PersistenceProviderBehavior.cs
- DbProviderConfigurationHandler.cs
- Buffer.cs
- SoapEnvelopeProcessingElement.cs
- PropertyGridCommands.cs
- FillBehavior.cs
- RectAnimationUsingKeyFrames.cs
- DependentList.cs
- LexicalChunk.cs
- SiteMembershipCondition.cs
- HostingEnvironmentSection.cs
- TouchesOverProperty.cs
- XmlSchemaSimpleTypeRestriction.cs
- WebHttpBindingCollectionElement.cs
- ThemeInfoAttribute.cs
- SettingsPropertyWrongTypeException.cs
- XmlSchemas.cs
- CorruptStoreException.cs
- NodeCounter.cs
- SmiContextFactory.cs
- DefaultParameterValueAttribute.cs
- ScriptingScriptResourceHandlerSection.cs
- VariableBinder.cs
- ComponentConverter.cs
- FontStyles.cs
- WizardStepBase.cs
- DataGridViewCellStyle.cs
- Convert.cs
- TransformerTypeCollection.cs
- DocobjHost.cs
- XamlPoint3DCollectionSerializer.cs
- _FtpDataStream.cs
- SystemNetHelpers.cs
- WindowsEditBox.cs
- DeferredRunTextReference.cs
- FixedTextView.cs
- ApplicationBuildProvider.cs
- CustomAssemblyResolver.cs
- OutputCacheSection.cs
- AspNetCacheProfileAttribute.cs
- UInt64Converter.cs
- MsmqBindingMonitor.cs
- ErrorsHelper.cs
- entityreference_tresulttype.cs
- Help.cs
- AppearanceEditorPart.cs
- QuadraticEase.cs
- Converter.cs
- TypeExtensionConverter.cs
- FormCollection.cs
- DetailsView.cs
- XmlMapping.cs
- _NetRes.cs
- ObjectCloneHelper.cs
- WebDisplayNameAttribute.cs
- ButtonColumn.cs
- RMPermissions.cs
- XPathSingletonIterator.cs
- CustomLineCap.cs
- DataGridViewCheckBoxColumn.cs
- LayoutEngine.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ConnectionsZone.cs
- EntityChangedParams.cs
- TcpChannelListener.cs
- TemplateInstanceAttribute.cs
- ButtonFieldBase.cs
- InputProcessorProfilesLoader.cs
- ConfigsHelper.cs
- StorageMappingItemCollection.cs
- Group.cs
- SpAudioStreamWrapper.cs
- UInt32Storage.cs
- ConfigurationSchemaErrors.cs
- ItemsChangedEventArgs.cs
- Constants.cs
- PrintDialog.cs
- DecoderFallback.cs