Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 5 / 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
- ImageInfo.cs
- RegionIterator.cs
- EventBookmark.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- TreeSet.cs
- SynchronizedInputProviderWrapper.cs
- DecimalAnimationBase.cs
- SimpleHandlerBuildProvider.cs
- TypeSystemProvider.cs
- BooleanProjectedSlot.cs
- XmlNamespaceDeclarationsAttribute.cs
- RTTypeWrapper.cs
- XmlSchemaType.cs
- OracleSqlParser.cs
- CompilerGlobalScopeAttribute.cs
- BoundColumn.cs
- GridViewUpdateEventArgs.cs
- StorageAssociationSetMapping.cs
- ConfigurationSettings.cs
- EventArgs.cs
- LassoSelectionBehavior.cs
- MachineKeyConverter.cs
- CompilerResults.cs
- Helpers.cs
- BatchParser.cs
- TagPrefixCollection.cs
- WebPartVerb.cs
- MobileControlDesigner.cs
- WinEventTracker.cs
- Privilege.cs
- ProviderUtil.cs
- AccessedThroughPropertyAttribute.cs
- HttpConfigurationSystem.cs
- UIntPtr.cs
- SmiRequestExecutor.cs
- SchemaObjectWriter.cs
- ObjectQueryProvider.cs
- NGCSerializerAsync.cs
- GregorianCalendarHelper.cs
- ResolveDuplex11AsyncResult.cs
- BrowserCapabilitiesCodeGenerator.cs
- FunctionGenerator.cs
- FieldAccessException.cs
- HttpModule.cs
- ProjectionCamera.cs
- ScriptingAuthenticationServiceSection.cs
- UnsafeNativeMethodsTablet.cs
- StringPropertyBuilder.cs
- SpinLock.cs
- EncryptedPackage.cs
- FixedFlowMap.cs
- ReflectionHelper.cs
- XmlEntity.cs
- ContainerParaClient.cs
- ListItemCollection.cs
- MimeReflector.cs
- AuthenticationSchemesHelper.cs
- HtmlInputPassword.cs
- ButtonBase.cs
- GenericUriParser.cs
- StatusBarAutomationPeer.cs
- OpCopier.cs
- XamlInt32CollectionSerializer.cs
- InstanceStoreQueryResult.cs
- RadioButtonDesigner.cs
- XmlSchemaObjectCollection.cs
- DataGridCheckBoxColumn.cs
- PluralizationService.cs
- LocalIdCollection.cs
- ProcessThreadDesigner.cs
- TableItemProviderWrapper.cs
- ViewPort3D.cs
- DataGridViewSelectedRowCollection.cs
- ThemeInfoAttribute.cs
- ComponentRenameEvent.cs
- PropertyChangingEventArgs.cs
- AsyncPostBackTrigger.cs
- GeometryConverter.cs
- CounterCreationData.cs
- MILUtilities.cs
- CustomSignedXml.cs
- HierarchicalDataSourceDesigner.cs
- JsonByteArrayDataContract.cs
- InputMethodStateChangeEventArgs.cs
- DrawingDrawingContext.cs
- CommandField.cs
- FrameSecurityDescriptor.cs
- SetterBase.cs
- PointCollectionConverter.cs
- HorizontalAlignConverter.cs
- ApplicationContext.cs
- RightNameExpirationInfoPair.cs
- XamlToRtfParser.cs
- TraceEventCache.cs
- MessageSecurityTokenVersion.cs
- XmlSchemaImport.cs
- XmlIlVisitor.cs
- DependsOnAttribute.cs
- XmlWellformedWriter.cs
- TdsParserStateObject.cs