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
- DataMemberFieldConverter.cs
- DesignerActionListCollection.cs
- Sql8ConformanceChecker.cs
- ValidateNames.cs
- DiffuseMaterial.cs
- AnnouncementEventArgs.cs
- EventLogReader.cs
- DetailsViewUpdateEventArgs.cs
- EventNotify.cs
- HttpCookiesSection.cs
- MultiTrigger.cs
- ReferenceEqualityComparer.cs
- QuaternionValueSerializer.cs
- ImageAttributes.cs
- ScriptBehaviorDescriptor.cs
- SupportingTokenSecurityTokenResolver.cs
- UserCancellationException.cs
- StandardOleMarshalObject.cs
- Dynamic.cs
- DataList.cs
- WindowsListView.cs
- XmlEventCache.cs
- ScalarType.cs
- SqlHelper.cs
- Solver.cs
- _Events.cs
- GatewayIPAddressInformationCollection.cs
- DataContractSerializerFaultFormatter.cs
- StoreAnnotationsMap.cs
- AutoResizedEvent.cs
- ElementNotAvailableException.cs
- ArrayMergeHelper.cs
- WmfPlaceableFileHeader.cs
- SQLInt64.cs
- xmlsaver.cs
- LZCodec.cs
- ToolStripItemRenderEventArgs.cs
- Parsers.cs
- CompilerScope.Storage.cs
- sortedlist.cs
- CreatingCookieEventArgs.cs
- ConsoleKeyInfo.cs
- Composition.cs
- XmlSchemaObjectTable.cs
- LabelLiteral.cs
- ParserStreamGeometryContext.cs
- IntSecurity.cs
- EmptyCollection.cs
- ConnectionStringsExpressionBuilder.cs
- ServiceModelEnumValidatorAttribute.cs
- UnsupportedPolicyOptionsException.cs
- XPathNode.cs
- AsyncDataRequest.cs
- Stack.cs
- Int32EqualityComparer.cs
- InputMethod.cs
- GeometryGroup.cs
- CompilerInfo.cs
- BuildResult.cs
- XmlTextReader.cs
- RichTextBoxDesigner.cs
- MissingMemberException.cs
- Collection.cs
- DesignerForm.cs
- CompositeScriptReference.cs
- ResourceExpressionEditorSheet.cs
- GuidConverter.cs
- HybridDictionary.cs
- TrackingMemoryStream.cs
- _OverlappedAsyncResult.cs
- GiveFeedbackEvent.cs
- XmlSchemaChoice.cs
- HttpRuntimeSection.cs
- ProcessInfo.cs
- CodeChecksumPragma.cs
- RectangleHotSpot.cs
- BCryptNative.cs
- EntityContainerRelationshipSet.cs
- AutomationProperty.cs
- KeyConverter.cs
- ActivityCodeDomSerializer.cs
- TextBlockAutomationPeer.cs
- RoutedEventValueSerializer.cs
- ZipIOLocalFileDataDescriptor.cs
- WindowsRebar.cs
- WhereQueryOperator.cs
- Matrix3D.cs
- Reference.cs
- HandlerFactoryWrapper.cs
- remotingproxy.cs
- WindowsTooltip.cs
- FamilyTypefaceCollection.cs
- VarRemapper.cs
- Int32KeyFrameCollection.cs
- StrokeNodeOperations2.cs
- ExtendedProperty.cs
- SineEase.cs
- PeerObject.cs
- CompatibleIComparer.cs
- SafeEventLogWriteHandle.cs