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
- CodeTypeMemberCollection.cs
- ConfigsHelper.cs
- RotateTransform.cs
- DPCustomTypeDescriptor.cs
- WebPartPersonalization.cs
- DBConnectionString.cs
- DeviceContexts.cs
- GeneralTransform3D.cs
- ParamArrayAttribute.cs
- GuidelineSet.cs
- PagesSection.cs
- XmlWellformedWriterHelpers.cs
- ItemList.cs
- XsltSettings.cs
- PreProcessInputEventArgs.cs
- StickyNoteHelper.cs
- webproxy.cs
- ComEventsHelper.cs
- OleAutBinder.cs
- DataGridPageChangedEventArgs.cs
- CipherData.cs
- MemberMemberBinding.cs
- Debug.cs
- TableLayoutStyle.cs
- SHA1Cng.cs
- WindowsTreeView.cs
- MenuItemStyleCollection.cs
- DigitalSignatureProvider.cs
- Point3DIndependentAnimationStorage.cs
- SortExpressionBuilder.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MethodBody.cs
- Calendar.cs
- DataFormats.cs
- StrokeRenderer.cs
- WorkflowServiceAttributesTypeConverter.cs
- ImageConverter.cs
- WebPartZoneCollection.cs
- SharedConnectionWorkflowTransactionService.cs
- BufferedWebEventProvider.cs
- LogRestartAreaEnumerator.cs
- ActivityExecutor.cs
- HtmlControlDesigner.cs
- LayoutTable.cs
- FormViewUpdatedEventArgs.cs
- Calendar.cs
- XmlCDATASection.cs
- ConditionCollection.cs
- ResourceContainer.cs
- ExpressionVisitor.cs
- EntryPointNotFoundException.cs
- CommandID.cs
- ElementHostPropertyMap.cs
- SiteMapNodeCollection.cs
- SimpleApplicationHost.cs
- HierarchicalDataBoundControlAdapter.cs
- SystemIcmpV6Statistics.cs
- SchemaImporterExtensionsSection.cs
- Group.cs
- DataGridHelper.cs
- SQLSingle.cs
- WorkflowServiceBehavior.cs
- HandlerWithFactory.cs
- DbParameterCollectionHelper.cs
- AsymmetricSignatureDeformatter.cs
- WebPartZoneBase.cs
- ScriptManager.cs
- MasterPageParser.cs
- AnimatedTypeHelpers.cs
- DelayedRegex.cs
- WebRequestModuleElement.cs
- _NestedSingleAsyncResult.cs
- RSATokenProvider.cs
- CodeSnippetTypeMember.cs
- BrowserDefinitionCollection.cs
- listitem.cs
- UriScheme.cs
- CellQuery.cs
- XmlAttributeCache.cs
- PointConverter.cs
- SQLInt32Storage.cs
- IntegerValidatorAttribute.cs
- ConfigWriter.cs
- ProcessModule.cs
- ZipIOLocalFileBlock.cs
- CodeAttachEventStatement.cs
- XPathDocumentIterator.cs
- CustomCategoryAttribute.cs
- GB18030Encoding.cs
- TransformValueSerializer.cs
- FragmentQuery.cs
- Profiler.cs
- Hex.cs
- ModulesEntry.cs
- SessionMode.cs
- RadioButtonFlatAdapter.cs
- ListItem.cs
- WebPartMinimizeVerb.cs
- isolationinterop.cs
- ValueTable.cs