Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CqlBlock.cs
- Geometry.cs
- Set.cs
- LineInfo.cs
- StringToken.cs
- InternalMappingException.cs
- XmlSchemaSimpleContentRestriction.cs
- Oid.cs
- HttpHandlersInstallComponent.cs
- ZipIOCentralDirectoryBlock.cs
- RectValueSerializer.cs
- BindableAttribute.cs
- HyperLinkField.cs
- EdmEntityTypeAttribute.cs
- _BasicClient.cs
- XmlSchemaAttribute.cs
- Label.cs
- XmlAnyAttributeAttribute.cs
- DataControlCommands.cs
- TagPrefixAttribute.cs
- SelectionItemPattern.cs
- TypeInitializationException.cs
- WindowsFormsHostPropertyMap.cs
- FormsAuthenticationModule.cs
- KeyGestureValueSerializer.cs
- SafeViewOfFileHandle.cs
- SchemaAttDef.cs
- PrePrepareMethodAttribute.cs
- HttpHandlersSection.cs
- BitFlagsGenerator.cs
- SQLBinary.cs
- PropertyPathConverter.cs
- DtrList.cs
- InkPresenterAutomationPeer.cs
- XamlPathDataSerializer.cs
- SafeNativeMethodsOther.cs
- RadioButtonAutomationPeer.cs
- PaintValueEventArgs.cs
- QueryContinueDragEventArgs.cs
- ExtenderHelpers.cs
- _BufferOffsetSize.cs
- RecordManager.cs
- UpdatableWrapper.cs
- ImageBrush.cs
- XmlSchemaExporter.cs
- XmlDataSourceView.cs
- DataSvcMapFile.cs
- CodeCatchClauseCollection.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PtsHost.cs
- EntityWithChangeTrackerStrategy.cs
- DataServiceProviderMethods.cs
- DesignerExtenders.cs
- TimeSpanOrInfiniteValidator.cs
- EventLogger.cs
- ConditionalExpression.cs
- ComNativeDescriptor.cs
- DragEvent.cs
- ContainerControlDesigner.cs
- BitVec.cs
- ToolboxDataAttribute.cs
- EdmSchemaError.cs
- BitmapEffectOutputConnector.cs
- GenericAuthenticationEventArgs.cs
- DaylightTime.cs
- Stylesheet.cs
- SqlMethodCallConverter.cs
- CommonDialog.cs
- SchemaCollectionCompiler.cs
- VSWCFServiceContractGenerator.cs
- TextEditorTyping.cs
- DocumentViewerBase.cs
- LocalizationParserHooks.cs
- StringBuilder.cs
- NameValueCollection.cs
- ToggleButtonAutomationPeer.cs
- SevenBitStream.cs
- XPathCompiler.cs
- ErrorHandlingReceiver.cs
- AppDomainInfo.cs
- UnknownBitmapDecoder.cs
- MD5.cs
- TextElementCollectionHelper.cs
- ProfileGroupSettings.cs
- ImageInfo.cs
- NamespaceDecl.cs
- AbsoluteQuery.cs
- RuntimeConfig.cs
- Mapping.cs
- TargetParameterCountException.cs
- StringCollection.cs
- CmsUtils.cs
- EventManager.cs
- TransportSecurityProtocolFactory.cs
- DataGridViewCellPaintingEventArgs.cs
- TemplateKey.cs
- BinHexEncoder.cs
- _TransmitFileOverlappedAsyncResult.cs
- ToolStripDropDownItem.cs
- ListBoxChrome.cs