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
- HTTPNotFoundHandler.cs
- Range.cs
- initElementDictionary.cs
- WebConfigurationFileMap.cs
- GestureRecognizer.cs
- RoutedEventHandlerInfo.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Clipboard.cs
- XmlLanguageConverter.cs
- x509store.cs
- ClrPerspective.cs
- ExceptionRoutedEventArgs.cs
- TypeConverter.cs
- MULTI_QI.cs
- HwndKeyboardInputProvider.cs
- CommandManager.cs
- TextHidden.cs
- Vector3DKeyFrameCollection.cs
- VersionPair.cs
- Directory.cs
- ColumnWidthChangedEvent.cs
- BinaryFormatterWriter.cs
- UserControlBuildProvider.cs
- PageBreakRecord.cs
- CallbackTimeoutsElement.cs
- XmlLangPropertyAttribute.cs
- BaseInfoTable.cs
- Wildcard.cs
- DrawListViewSubItemEventArgs.cs
- WebBrowser.cs
- MailSettingsSection.cs
- ProcessHostFactoryHelper.cs
- QueryCursorEventArgs.cs
- DispatcherExceptionEventArgs.cs
- LabelLiteral.cs
- UserPersonalizationStateInfo.cs
- Terminate.cs
- ApplyTemplatesAction.cs
- PointAnimationUsingPath.cs
- DocumentOrderQuery.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DoubleLinkListEnumerator.cs
- HtmlShim.cs
- BuiltInExpr.cs
- X509CertificateInitiatorClientCredential.cs
- SymbolResolver.cs
- HideDisabledControlAdapter.cs
- RelationshipDetailsCollection.cs
- SqlErrorCollection.cs
- HttpCacheParams.cs
- UIElement.cs
- RsaElement.cs
- RuntimeArgumentHandle.cs
- CodePageUtils.cs
- Image.cs
- ResourceContainer.cs
- ConfigViewGenerator.cs
- WebSysDisplayNameAttribute.cs
- ErrorRuntimeConfig.cs
- UnsupportedPolicyOptionsException.cs
- Compilation.cs
- PermissionSet.cs
- PersonalizableTypeEntry.cs
- ellipse.cs
- BoundField.cs
- PropertyManager.cs
- WpfSharedBamlSchemaContext.cs
- VerbConverter.cs
- HtmlInputPassword.cs
- HtmlInputHidden.cs
- MultiPageTextView.cs
- SecurityTokenValidationException.cs
- SortableBindingList.cs
- While.cs
- ResourceDescriptionAttribute.cs
- WebPartHeaderCloseVerb.cs
- FormatPage.cs
- Calendar.cs
- WizardForm.cs
- XPathParser.cs
- KeySplineConverter.cs
- Cursor.cs
- SamlAction.cs
- CodeTypeMember.cs
- AjaxFrameworkAssemblyAttribute.cs
- Parser.cs
- SafeViewOfFileHandle.cs
- AnnotationResourceChangedEventArgs.cs
- IItemContainerGenerator.cs
- WebPartAddingEventArgs.cs
- UIElementHelper.cs
- Visual3DCollection.cs
- BuildManagerHost.cs
- DocumentPage.cs
- MultilineStringConverter.cs
- OletxVolatileEnlistment.cs
- PriorityQueue.cs
- TargetInvocationException.cs
- SelectionProcessor.cs
- TabletDeviceInfo.cs