Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HtmlElementErrorEventArgs.cs
- EmptyElement.cs
- RequestTimeoutManager.cs
- SessionPageStatePersister.cs
- Inflater.cs
- UIAgentAsyncBeginRequest.cs
- PrintDialogException.cs
- PropertyIdentifier.cs
- MultiBinding.cs
- TableNameAttribute.cs
- KerberosReceiverSecurityToken.cs
- TypeInitializationException.cs
- RuntimeUtils.cs
- XmlAnyElementAttribute.cs
- ApplicationDirectory.cs
- ParameterToken.cs
- WebRequestModulesSection.cs
- EnvironmentPermission.cs
- DataGridItemEventArgs.cs
- LayoutDump.cs
- NameTable.cs
- XmlSchemaCompilationSettings.cs
- Version.cs
- BindingContext.cs
- DateTimeOffsetConverter.cs
- UrlPropertyAttribute.cs
- HMACRIPEMD160.cs
- OdbcUtils.cs
- DbConnectionPoolGroup.cs
- EllipticalNodeOperations.cs
- RectangleF.cs
- EventProxy.cs
- QueryOutputWriter.cs
- AstNode.cs
- RepeatBehavior.cs
- EntitySqlException.cs
- ActivityExecutorDelegateInfo.cs
- BitmapPalette.cs
- TextRangeBase.cs
- EditorBrowsableAttribute.cs
- EventLogPermissionEntry.cs
- WebScriptEndpoint.cs
- SqlDuplicator.cs
- BitmapInitialize.cs
- AssemblyNameProxy.cs
- ResXResourceSet.cs
- UnicodeEncoding.cs
- TextEditorSpelling.cs
- LambdaCompiler.Generated.cs
- DataGridColumnReorderingEventArgs.cs
- MarkerProperties.cs
- BitmapCodecInfo.cs
- QuarticEase.cs
- PointIndependentAnimationStorage.cs
- SqlDataSourceCommandEventArgs.cs
- ExtendedPropertyDescriptor.cs
- HMACSHA384.cs
- _LocalDataStoreMgr.cs
- DoWorkEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- CodeIdentifier.cs
- ContextMenu.cs
- SubclassTypeValidatorAttribute.cs
- _emptywebproxy.cs
- SvcMapFileSerializer.cs
- NullRuntimeConfig.cs
- TextElementEnumerator.cs
- rsa.cs
- ProgressChangedEventArgs.cs
- TextUtf8RawTextWriter.cs
- Translator.cs
- EntityDataSourceView.cs
- AmbientValueAttribute.cs
- ActivityCodeGenerator.cs
- Formatter.cs
- CodeMemberMethod.cs
- ByeMessageCD1.cs
- XmlNamespaceMappingCollection.cs
- SqlDataSource.cs
- QilLoop.cs
- FontUnitConverter.cs
- UpdateProgress.cs
- SqlConnectionManager.cs
- CodeTypeReferenceCollection.cs
- BinaryKeyIdentifierClause.cs
- Internal.cs
- SyndicationFeed.cs
- Selection.cs
- NamespaceDisplayAutomationPeer.cs
- LongCountAggregationOperator.cs
- WS2007HttpBinding.cs
- DeferredBinaryDeserializerExtension.cs
- FormsIdentity.cs
- RadioButton.cs
- XmlToDatasetMap.cs
- PassportAuthenticationModule.cs
- ItemDragEvent.cs
- TextRangeSerialization.cs
- DBSqlParser.cs
- ServiceInfo.cs