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
- Cloud.cs
- OleDbPermission.cs
- TraceLevelStore.cs
- AxHost.cs
- WebException.cs
- UpdateEventArgs.cs
- PopupRootAutomationPeer.cs
- DataServiceExpressionVisitor.cs
- StyleTypedPropertyAttribute.cs
- TokenFactoryFactory.cs
- BinaryObjectReader.cs
- TextStore.cs
- ProcessHostConfigUtils.cs
- SqlProfileProvider.cs
- ADConnectionHelper.cs
- XmlTextReader.cs
- QueryOptionExpression.cs
- NetworkInformationPermission.cs
- CaseInsensitiveOrdinalStringComparer.cs
- PartialTrustHelpers.cs
- DataTemplateSelector.cs
- UrlAuthFailureHandler.cs
- RichTextBoxAutomationPeer.cs
- ClientScriptItem.cs
- DirectoryNotFoundException.cs
- ConcurrentStack.cs
- MaterialGroup.cs
- DataServiceProcessingPipelineEventArgs.cs
- XmlSchemaInclude.cs
- CodeTypeReferenceExpression.cs
- PtsHost.cs
- PropertyFilterAttribute.cs
- UnsafeNativeMethods.cs
- PropertiesTab.cs
- ListViewDeletedEventArgs.cs
- DynamicDataRouteHandler.cs
- UpdatableGenericsFeature.cs
- KeyInstance.cs
- webproxy.cs
- StoreItemCollection.cs
- Calendar.cs
- ConstraintStruct.cs
- URLAttribute.cs
- WebBrowserEvent.cs
- SystemIPGlobalProperties.cs
- InputLangChangeEvent.cs
- WebBrowserNavigatedEventHandler.cs
- GridLength.cs
- DesignerLoader.cs
- Model3DCollection.cs
- ExpressionBuilder.cs
- RenderDataDrawingContext.cs
- CallContext.cs
- MessageQueueConverter.cs
- RelationshipDetailsCollection.cs
- Section.cs
- XmlLanguage.cs
- GregorianCalendar.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- PassportAuthentication.cs
- TraceHandler.cs
- NameNode.cs
- HitTestFilterBehavior.cs
- PrivilegedConfigurationManager.cs
- ContentWrapperAttribute.cs
- ArrayList.cs
- LinkDescriptor.cs
- SqlMultiplexer.cs
- GPStream.cs
- SystemIPv6InterfaceProperties.cs
- JournalNavigationScope.cs
- ISessionStateStore.cs
- TreeNodeCollectionEditor.cs
- InputScopeAttribute.cs
- AsyncPostBackTrigger.cs
- SystemThemeKey.cs
- AliasedExpr.cs
- Cursor.cs
- BaseTransportHeaders.cs
- webproxy.cs
- ClientScriptManager.cs
- WizardPanelChangingEventArgs.cs
- InvalidPrinterException.cs
- _OverlappedAsyncResult.cs
- FacetChecker.cs
- PolygonHotSpot.cs
- IndentedWriter.cs
- ADMembershipProvider.cs
- SemanticAnalyzer.cs
- TextRange.cs
- cryptoapiTransform.cs
- Clock.cs
- PropertyItemInternal.cs
- AlignmentXValidation.cs
- CodeTypeMember.cs
- PolicyException.cs
- Bidi.cs
- DBSchemaTable.cs
- WebPartPersonalization.cs
- OletxTransactionFormatter.cs