Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 5 / 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
- ClosableStream.cs
- ContextMenuStripGroupCollection.cs
- TransformValueSerializer.cs
- EmissiveMaterial.cs
- SHA1CryptoServiceProvider.cs
- PointCollection.cs
- BitmapEffectInput.cs
- ThreadExceptionEvent.cs
- RelationshipWrapper.cs
- ServiceModelConfigurationSectionCollection.cs
- TokenFactoryCredential.cs
- FileDialog_Vista.cs
- WebExceptionStatus.cs
- ParserExtension.cs
- SpeechUI.cs
- KeyConverter.cs
- Propagator.JoinPropagator.cs
- DataKeyPropertyAttribute.cs
- TreeNodeCollection.cs
- AccessibleObject.cs
- XPathNodeInfoAtom.cs
- TabItemAutomationPeer.cs
- PageBuildProvider.cs
- Root.cs
- ChangeConflicts.cs
- WindowsStatusBar.cs
- safelink.cs
- GCHandleCookieTable.cs
- GeometryHitTestParameters.cs
- SecurityMessageProperty.cs
- Interop.cs
- AssemblyNameProxy.cs
- GroupBox.cs
- FixedSOMSemanticBox.cs
- XmlParser.cs
- JsonQueryStringConverter.cs
- HttpStreamMessageEncoderFactory.cs
- DependencyObjectPropertyDescriptor.cs
- CodeRegionDirective.cs
- storagemappingitemcollection.viewdictionary.cs
- TabControl.cs
- WebPartEditVerb.cs
- XmlSchemaSimpleTypeList.cs
- XmlSchemaException.cs
- FunctionOverloadResolver.cs
- PhysicalAddress.cs
- DecimalAnimationUsingKeyFrames.cs
- MaterialGroup.cs
- FileLevelControlBuilderAttribute.cs
- FragmentQuery.cs
- Imaging.cs
- ReferenceSchema.cs
- SQLMembershipProvider.cs
- VBIdentifierNameEditor.cs
- CreateSequenceResponse.cs
- AutoResetEvent.cs
- FusionWrap.cs
- WebProxyScriptElement.cs
- NTAccount.cs
- log.cs
- Clipboard.cs
- TemplateEditingService.cs
- XmlSerializableServices.cs
- XmlLinkedNode.cs
- BindingContext.cs
- CodeMethodReturnStatement.cs
- PartialCachingControl.cs
- AdPostCacheSubstitution.cs
- DispatchOperationRuntime.cs
- TextPointerBase.cs
- Int32RectValueSerializer.cs
- UDPClient.cs
- TitleStyle.cs
- SoapTransportImporter.cs
- SubMenuStyleCollection.cs
- XmlSchemaAnyAttribute.cs
- SignatureHelper.cs
- KeyedPriorityQueue.cs
- CertificateManager.cs
- DocobjHost.cs
- TextAutomationPeer.cs
- DataPagerFieldCollection.cs
- XmlComplianceUtil.cs
- SafeWaitHandle.cs
- ReachDocumentPageSerializerAsync.cs
- XPathDocumentIterator.cs
- SQLInt32.cs
- SQLBytes.cs
- TextRunCache.cs
- wpf-etw.cs
- RestClientProxyHandler.cs
- DesignSurfaceEvent.cs
- SerializableAttribute.cs
- SharedPersonalizationStateInfo.cs
- WebControlParameterProxy.cs
- OAVariantLib.cs
- DbSourceParameterCollection.cs
- SyndicationFeedFormatter.cs
- NetTcpSection.cs
- WriteableOnDemandPackagePart.cs