Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 1305376 / 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)) {} [System.Security.SecuritySafeCritical] // auto-generated public HMACSHA384 (byte[] key) { 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)) {} [System.Security.SecuritySafeCritical] // auto-generated public HMACSHA384 (byte[] key) { 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
- ToolStripPanelRow.cs
- NavigatorInvalidBodyAccessException.cs
- InkCollectionBehavior.cs
- EncoderNLS.cs
- RegexGroup.cs
- GridViewPageEventArgs.cs
- MediaContextNotificationWindow.cs
- CustomTypeDescriptor.cs
- SystemSounds.cs
- ETagAttribute.cs
- SQlBooleanStorage.cs
- TemplateBaseAction.cs
- NativeMethods.cs
- BufferedGraphicsManager.cs
- DefaultPropertyAttribute.cs
- QilVisitor.cs
- XmlSerializerFactory.cs
- JumpItem.cs
- ProfileBuildProvider.cs
- CqlLexer.cs
- PackageRelationship.cs
- PauseStoryboard.cs
- DataListCommandEventArgs.cs
- Block.cs
- ColumnCollection.cs
- GenericWebPart.cs
- PowerModeChangedEventArgs.cs
- SoapEnumAttribute.cs
- NumericUpDown.cs
- ConfigurationSectionGroup.cs
- DiscreteKeyFrames.cs
- ExecutorLocksHeldException.cs
- TableLayoutPanelCellPosition.cs
- XslTransform.cs
- EntitySqlQueryCacheEntry.cs
- WCFServiceClientProxyGenerator.cs
- RegexCaptureCollection.cs
- ISAPIApplicationHost.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlNamespaceDeclarationsAttribute.cs
- MethodResolver.cs
- UInt64Converter.cs
- TypeToTreeConverter.cs
- SortedDictionary.cs
- IsolatedStorageFile.cs
- DataGridViewElement.cs
- CancellationScope.cs
- InputProcessorProfiles.cs
- AssemblyAttributesGoHere.cs
- Random.cs
- LogRecordSequence.cs
- PropertyRef.cs
- ToolStripDropDownClosingEventArgs.cs
- ObjectViewFactory.cs
- TablePatternIdentifiers.cs
- ModuleConfigurationInfo.cs
- JulianCalendar.cs
- ClientBuildManagerCallback.cs
- MaskedTextProvider.cs
- WebPartDescription.cs
- SHA512Managed.cs
- VisualStyleTypesAndProperties.cs
- XmlWrappingWriter.cs
- WizardPanelChangingEventArgs.cs
- AppSettingsExpressionBuilder.cs
- DataGridViewAdvancedBorderStyle.cs
- AssociationTypeEmitter.cs
- HelpInfo.cs
- PointValueSerializer.cs
- WindowsEditBox.cs
- RadioButtonRenderer.cs
- figurelengthconverter.cs
- safemediahandle.cs
- GetCardDetailsRequest.cs
- XmlElementCollection.cs
- DPTypeDescriptorContext.cs
- ExplicitDiscriminatorMap.cs
- EventProviderWriter.cs
- NamespaceQuery.cs
- ToggleProviderWrapper.cs
- _LocalDataStoreMgr.cs
- DataErrorValidationRule.cs
- WebPartDescription.cs
- AssociationEndMember.cs
- ResourcePart.cs
- PersonalizationStateQuery.cs
- COM2PictureConverter.cs
- RepeaterCommandEventArgs.cs
- FileVersionInfo.cs
- __Error.cs
- EdmTypeAttribute.cs
- DataSourceXmlTextReader.cs
- Geometry3D.cs
- storagemappingitemcollection.viewdictionary.cs
- BitArray.cs
- TypeDescriptionProvider.cs
- ConfigurationException.cs
- InputLangChangeEvent.cs
- _SSPISessionCache.cs
- ViewStateException.cs