Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 1 / 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. // // ==--== // // 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectItemLoadingSessionData.cs
- RegistryKey.cs
- CodeDomSerializationProvider.cs
- DataGridViewCellParsingEventArgs.cs
- ConnectionStringSettingsCollection.cs
- BrowserTree.cs
- OAVariantLib.cs
- TreeViewImageKeyConverter.cs
- WindowsSysHeader.cs
- NameValuePair.cs
- PropertyGridEditorPart.cs
- WpfXamlMember.cs
- Unit.cs
- TextRange.cs
- PropertyCollection.cs
- SqlDataSourceEnumerator.cs
- Line.cs
- StyleCollection.cs
- SharedHttpTransportManager.cs
- DispatchChannelSink.cs
- TaiwanCalendar.cs
- SamlAuthenticationStatement.cs
- AutoCompleteStringCollection.cs
- StringTraceRecord.cs
- MarkupObject.cs
- BitmapEffectInputData.cs
- TransformDescriptor.cs
- DataGridItemCollection.cs
- Identity.cs
- _OverlappedAsyncResult.cs
- FindSimilarActivitiesVerb.cs
- ArgIterator.cs
- StrongNameMembershipCondition.cs
- PolyQuadraticBezierSegment.cs
- SafeEventLogReadHandle.cs
- NopReturnReader.cs
- BasicCellRelation.cs
- AppliedDeviceFiltersDialog.cs
- Win32KeyboardDevice.cs
- WebProxyScriptElement.cs
- LeaseManager.cs
- SchemaTableColumn.cs
- CodeStatementCollection.cs
- TransactionManager.cs
- NativeMethods.cs
- GenericParameterDataContract.cs
- unsafenativemethodstextservices.cs
- QueueAccessMode.cs
- RelatedCurrencyManager.cs
- NullableDoubleSumAggregationOperator.cs
- RecognizerStateChangedEventArgs.cs
- VersionedStreamOwner.cs
- TextMetrics.cs
- SchemaInfo.cs
- WindowsEditBox.cs
- Propagator.Evaluator.cs
- ProxyWebPartManager.cs
- FixedLineResult.cs
- Int32AnimationBase.cs
- StylusTouchDevice.cs
- AccessDataSource.cs
- FloaterBaseParaClient.cs
- AssemblyName.cs
- RecordsAffectedEventArgs.cs
- RedirectionProxy.cs
- EmptyEnumerator.cs
- ConfigurationStrings.cs
- WindowsTooltip.cs
- UnsafeNetInfoNativeMethods.cs
- Command.cs
- CompareValidator.cs
- InteropAutomationProvider.cs
- OleStrCAMarshaler.cs
- ByteArrayHelperWithString.cs
- SpecularMaterial.cs
- XmlQualifiedNameTest.cs
- ButtonPopupAdapter.cs
- MarkedHighlightComponent.cs
- AttachedPropertyInfo.cs
- UpdateTracker.cs
- SQlBooleanStorage.cs
- Vector3DKeyFrameCollection.cs
- DesignerSerializationOptionsAttribute.cs
- VirtualPath.cs
- PhysicalFontFamily.cs
- XsdValidatingReader.cs
- Label.cs
- MgmtResManager.cs
- RuntimeConfigurationRecord.cs
- XPathSingletonIterator.cs
- DPTypeDescriptorContext.cs
- PreProcessInputEventArgs.cs
- ScriptReference.cs
- XmlMembersMapping.cs
- WebPartConnectVerb.cs
- DocumentEventArgs.cs
- PersistenceContext.cs
- SettingsSection.cs
- RuntimeArgumentHandle.cs
- ExpandSegment.cs