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
- EnumerableRowCollectionExtensions.cs
- DataServiceBehavior.cs
- FixedPageStructure.cs
- TrackingDataItemValue.cs
- SqlTransaction.cs
- ScopelessEnumAttribute.cs
- EasingFunctionBase.cs
- NotFiniteNumberException.cs
- MessageDesigner.cs
- FixedSOMPageConstructor.cs
- SkipQueryOptionExpression.cs
- CapabilitiesSection.cs
- CompressStream.cs
- ImageMapEventArgs.cs
- Vector3DValueSerializer.cs
- TextTreeRootTextBlock.cs
- SlipBehavior.cs
- BidOverLoads.cs
- SrgsRule.cs
- ContentControl.cs
- SqlConnectionFactory.cs
- ClientSettingsSection.cs
- SpellCheck.cs
- _NetworkingPerfCounters.cs
- DataListDesigner.cs
- CryptoApi.cs
- UserPreferenceChangingEventArgs.cs
- ContractDescription.cs
- ExitEventArgs.cs
- MediaPlayer.cs
- TypeInformation.cs
- ResourceSet.cs
- WinFormsUtils.cs
- Command.cs
- AuthenticationManager.cs
- IgnoreSectionHandler.cs
- BitmapEffectInput.cs
- ImageCreator.cs
- ShaderRenderModeValidation.cs
- WindowsListViewGroupHelper.cs
- MutexSecurity.cs
- XmlSchemaCollection.cs
- WrappedIUnknown.cs
- FileDialog_Vista.cs
- DBSchemaRow.cs
- DependencyObjectType.cs
- columnmapfactory.cs
- OleDbCommandBuilder.cs
- SqlColumnizer.cs
- RuleInfoComparer.cs
- IisTraceListener.cs
- NativeCppClassAttribute.cs
- ServicesUtilities.cs
- Exception.cs
- ProxyElement.cs
- streamingZipPartStream.cs
- ThicknessAnimationBase.cs
- SqlProfileProvider.cs
- NonVisualControlAttribute.cs
- filewebrequest.cs
- TerminatorSinks.cs
- SQLMembershipProvider.cs
- ValidationEventArgs.cs
- ArrayList.cs
- IntSecurity.cs
- VariableAction.cs
- SettingsProperty.cs
- KeySplineConverter.cs
- RightNameExpirationInfoPair.cs
- TextOnlyOutput.cs
- UnsafeNativeMethods.cs
- SurrogateSelector.cs
- ContainerControl.cs
- _DisconnectOverlappedAsyncResult.cs
- XmlSerializerVersionAttribute.cs
- ContainerVisual.cs
- ZipFileInfo.cs
- AsyncStreamReader.cs
- TextDpi.cs
- GridViewDeletedEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- UrlMappingsSection.cs
- XmlSchemaSimpleContentExtension.cs
- PtsCache.cs
- ValidationError.cs
- ChtmlSelectionListAdapter.cs
- BinaryFormatter.cs
- UInt64Converter.cs
- SafeNativeMethodsMilCoreApi.cs
- HybridDictionary.cs
- EmptyStringExpandableObjectConverter.cs
- WindowsToolbarItemAsMenuItem.cs
- UnauthorizedWebPart.cs
- OdbcEnvironment.cs
- SystemBrushes.cs
- QueryReaderSettings.cs
- KeyFrames.cs
- SplineKeyFrames.cs
- ExpressionBuilderContext.cs
- DBBindings.cs