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
- ObjectDataSourceEventArgs.cs
- CompatibleIComparer.cs
- BitStack.cs
- WebPart.cs
- Scene3D.cs
- RangeValidator.cs
- Int32RectConverter.cs
- ObjectHelper.cs
- NumberAction.cs
- KeySpline.cs
- ServiceHttpModule.cs
- SiteMap.cs
- ResourcesChangeInfo.cs
- ClientFormsIdentity.cs
- ContentTextAutomationPeer.cs
- SharedPersonalizationStateInfo.cs
- OracleRowUpdatedEventArgs.cs
- COM2Properties.cs
- X509UI.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CmsInterop.cs
- Timer.cs
- TextRunProperties.cs
- WSHttpBinding.cs
- SiteMapHierarchicalDataSourceView.cs
- FacetDescriptionElement.cs
- WebPartDesigner.cs
- SqlProviderServices.cs
- JournalEntry.cs
- UserControlAutomationPeer.cs
- NullableLongAverageAggregationOperator.cs
- DiscoveryDocumentSearchPattern.cs
- EditorOptionAttribute.cs
- WindowsGraphicsWrapper.cs
- CorePropertiesFilter.cs
- HTTPNotFoundHandler.cs
- OdbcUtils.cs
- SiteOfOriginPart.cs
- InkCollectionBehavior.cs
- EdmProviderManifest.cs
- Rijndael.cs
- FixedFlowMap.cs
- XmlCharType.cs
- SignedXmlDebugLog.cs
- Win32KeyboardDevice.cs
- TreeNodeCollectionEditorDialog.cs
- RowVisual.cs
- WebBrowser.cs
- DataGridViewColumnCollection.cs
- OverflowException.cs
- Config.cs
- ItemContainerGenerator.cs
- Deserializer.cs
- ValidationError.cs
- UnescapedXmlDiagnosticData.cs
- MissingManifestResourceException.cs
- TableItemStyle.cs
- BatchStream.cs
- LOSFormatter.cs
- ResourceProperty.cs
- WebPartDisplayModeEventArgs.cs
- ClipboardProcessor.cs
- RoleManagerSection.cs
- assertwrapper.cs
- SQLBinary.cs
- ZipIOExtraField.cs
- DynamicActionMessageFilter.cs
- ScriptDescriptor.cs
- DebugTraceHelper.cs
- CustomErrorsSectionWrapper.cs
- PackageProperties.cs
- ApplicationFileParser.cs
- OverrideMode.cs
- ArrangedElementCollection.cs
- ApplicationDirectory.cs
- SubclassTypeValidatorAttribute.cs
- DataControlButton.cs
- StylusPoint.cs
- ApplicationException.cs
- TypedOperationInfo.cs
- ArcSegment.cs
- ProfilePropertySettingsCollection.cs
- Panel.cs
- ControlPropertyNameConverter.cs
- selecteditemcollection.cs
- GatewayIPAddressInformationCollection.cs
- TextEmbeddedObject.cs
- PeerTransportCredentialType.cs
- AtomicFile.cs
- FunctionDetailsReader.cs
- UriExt.cs
- SerialReceived.cs
- UIPermission.cs
- DiscreteKeyFrames.cs
- InstallerTypeAttribute.cs
- DateTimeFormatInfo.cs
- OpCodes.cs
- UndoManager.cs
- COM2ComponentEditor.cs
- ReflectPropertyDescriptor.cs