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
- RadioButtonStandardAdapter.cs
- connectionpool.cs
- AnnouncementInnerClientCD1.cs
- InvokeGenerator.cs
- DeleteCardRequest.cs
- StrokeNodeData.cs
- InvalidEnumArgumentException.cs
- PropertyPathConverter.cs
- FuncCompletionCallbackWrapper.cs
- XsltQilFactory.cs
- SimpleModelProvider.cs
- XmlSignatureManifest.cs
- ImageAnimator.cs
- TextSpanModifier.cs
- Symbol.cs
- ProfileServiceManager.cs
- RuntimeResourceSet.cs
- Rfc2898DeriveBytes.cs
- TextMetrics.cs
- FontFaceLayoutInfo.cs
- StorageAssociationSetMapping.cs
- ParagraphResult.cs
- WebPartExportVerb.cs
- DataControlButton.cs
- ToolBar.cs
- MimeMapping.cs
- SingleObjectCollection.cs
- FixedFlowMap.cs
- DataAdapter.cs
- CommandExpr.cs
- QilXmlWriter.cs
- SqlConnection.cs
- Storyboard.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlBulkCopyColumnMappingCollection.cs
- ExpressionVisitorHelpers.cs
- PageContentAsyncResult.cs
- CqlLexerHelpers.cs
- PointUtil.cs
- ProcessHostServerConfig.cs
- ErrorFormatter.cs
- InputDevice.cs
- AutomationPropertyInfo.cs
- UIPropertyMetadata.cs
- SchemaImporterExtensionElement.cs
- PartialTrustVisibleAssembliesSection.cs
- BamlBinaryWriter.cs
- util.cs
- RNGCryptoServiceProvider.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- PatternMatcher.cs
- _RequestCacheProtocol.cs
- StringHandle.cs
- BitArray.cs
- ElementProxy.cs
- AppDomainManager.cs
- ping.cs
- ObjectHandle.cs
- ReservationNotFoundException.cs
- TransportBindingElement.cs
- UpdateTranslator.cs
- StoreAnnotationsMap.cs
- _NTAuthentication.cs
- ConnectionStringSettings.cs
- sqlser.cs
- StreamResourceInfo.cs
- DataTableMapping.cs
- WaitHandle.cs
- OptionalColumn.cs
- TextSyndicationContent.cs
- ColumnReorderedEventArgs.cs
- PrivilegeNotHeldException.cs
- IisTraceListener.cs
- CodeAttachEventStatement.cs
- PointHitTestParameters.cs
- WebPartManager.cs
- Publisher.cs
- NestPullup.cs
- GeometryCollection.cs
- ProviderException.cs
- HtmlTernaryTree.cs
- HttpRequestCacheValidator.cs
- QilChoice.cs
- PathTooLongException.cs
- HttpStreamXmlDictionaryWriter.cs
- SortDescriptionCollection.cs
- Typeface.cs
- ProfilePropertyNameValidator.cs
- BaseCAMarshaler.cs
- LogEntryHeaderv1Deserializer.cs
- GridSplitter.cs
- ProcessProtocolHandler.cs
- FontNamesConverter.cs
- FixedDocumentSequencePaginator.cs
- RegisteredDisposeScript.cs
- MemberPathMap.cs
- BevelBitmapEffect.cs
- Brush.cs
- XamlSerializationHelper.cs
- NetworkStream.cs