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
- ModelPerspective.cs
- LinkClickEvent.cs
- RemoteEndpointMessageProperty.cs
- ZoneIdentityPermission.cs
- ClientApiGenerator.cs
- Pts.cs
- SizeKeyFrameCollection.cs
- EventMap.cs
- DateTimeOffset.cs
- Compiler.cs
- DataBoundLiteralControl.cs
- VisualStateManager.cs
- SchemaEntity.cs
- Substitution.cs
- WsdlInspector.cs
- X509SecurityToken.cs
- WindowsTokenRoleProvider.cs
- ProviderConnectionPoint.cs
- MenuEventArgs.cs
- FieldToken.cs
- DockPanel.cs
- CodeComment.cs
- DataListItem.cs
- DelegatedStream.cs
- DecimalConstantAttribute.cs
- brushes.cs
- DrawingBrush.cs
- NameNode.cs
- TreeIterator.cs
- PrintPreviewControl.cs
- FragmentQueryKB.cs
- SharedStream.cs
- ApplicationFileParser.cs
- CompiledAction.cs
- ResourceBinder.cs
- OleDbMetaDataFactory.cs
- Profiler.cs
- ConditionalExpression.cs
- basenumberconverter.cs
- CssTextWriter.cs
- XmlEntity.cs
- MenuItemCollectionEditorDialog.cs
- ResourceBinder.cs
- Stroke.cs
- TargetControlTypeCache.cs
- XmlSchemaAnnotation.cs
- WebPartPersonalization.cs
- NameScopePropertyAttribute.cs
- ManipulationStartingEventArgs.cs
- WCFBuildProvider.cs
- XmlSchemaImport.cs
- XhtmlBasicLiteralTextAdapter.cs
- StyleXamlParser.cs
- ButtonChrome.cs
- AmbientProperties.cs
- HttpBufferlessInputStream.cs
- EntityDataSourceDesigner.cs
- _ScatterGatherBuffers.cs
- ContextItemManager.cs
- InstancePersistenceContext.cs
- EndpointInfoCollection.cs
- TemplateControlParser.cs
- LinqDataSourceUpdateEventArgs.cs
- UnsafeNativeMethods.cs
- SqlRemoveConstantOrderBy.cs
- DataTableExtensions.cs
- ThaiBuddhistCalendar.cs
- EditCommandColumn.cs
- DateTimeValueSerializer.cs
- DiagnosticsConfigurationHandler.cs
- InfoCardSymmetricCrypto.cs
- BaseUriHelper.cs
- MachinePropertyVariants.cs
- WorkflowViewElement.cs
- Knowncolors.cs
- MemberHolder.cs
- StatusBar.cs
- WebPartVerb.cs
- WeakRefEnumerator.cs
- SecurityTokenResolver.cs
- ComPlusInstanceContextInitializer.cs
- ErasingStroke.cs
- NativeMethods.cs
- PermissionAttributes.cs
- PhysicalFontFamily.cs
- SystemIPGlobalProperties.cs
- ApplicationServiceHelper.cs
- RegistrySecurity.cs
- TraceSection.cs
- AttributeSetAction.cs
- XmlCharCheckingReader.cs
- OleDbDataAdapter.cs
- SiteMapSection.cs
- TextCollapsingProperties.cs
- MailMessageEventArgs.cs
- DictionaryChange.cs
- ToolboxComponentsCreatingEventArgs.cs
- TextStore.cs
- IPEndPoint.cs
- ByteConverter.cs