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
- DependentList.cs
- ArrayConverter.cs
- UnconditionalPolicy.cs
- SapiRecognizer.cs
- Bitmap.cs
- ImageAnimator.cs
- BuilderPropertyEntry.cs
- XmlQueryCardinality.cs
- InternalMappingException.cs
- FrameworkElement.cs
- OdbcUtils.cs
- CatalogZone.cs
- DependencyObjectProvider.cs
- PointConverter.cs
- UnsafeNetInfoNativeMethods.cs
- KeyNotFoundException.cs
- BamlLocalizableResource.cs
- ArgumentValue.cs
- Padding.cs
- ToolStripPanelSelectionGlyph.cs
- PostBackOptions.cs
- _StreamFramer.cs
- QueueAccessMode.cs
- DomNameTable.cs
- HtmlToClrEventProxy.cs
- TrustLevel.cs
- PasswordTextNavigator.cs
- Span.cs
- HttpHandlerActionCollection.cs
- DataRecord.cs
- ProxySimple.cs
- SharedMemory.cs
- Menu.cs
- FrameworkContextData.cs
- PinProtectionHelper.cs
- DeploymentExceptionMapper.cs
- PersonalizableTypeEntry.cs
- DbProviderSpecificTypePropertyAttribute.cs
- NavigationCommands.cs
- BindingMAnagerBase.cs
- WindowsSpinner.cs
- LiteralSubsegment.cs
- QueryStatement.cs
- _SafeNetHandles.cs
- GiveFeedbackEventArgs.cs
- HandleValueEditor.cs
- Sql8ConformanceChecker.cs
- LookupNode.cs
- ReadOnlyDataSource.cs
- JpegBitmapDecoder.cs
- Validator.cs
- ElementProxy.cs
- DoubleCollectionValueSerializer.cs
- TypeReference.cs
- Part.cs
- FontStretchConverter.cs
- SqlGatherProducedAliases.cs
- PeerDefaultCustomResolverClient.cs
- SspiSecurityToken.cs
- CodeTypeReferenceCollection.cs
- DecoderFallback.cs
- TimeZone.cs
- StylusButton.cs
- ItemType.cs
- TableParaClient.cs
- TraceListeners.cs
- SemaphoreFullException.cs
- HideDisabledControlAdapter.cs
- SqlProvider.cs
- TextElementEditingBehaviorAttribute.cs
- IsolatedStorage.cs
- MenuBase.cs
- HwndHost.cs
- XmlParserContext.cs
- ProgressChangedEventArgs.cs
- HtmlFormAdapter.cs
- XPathMessageFilter.cs
- CssStyleCollection.cs
- DesignTimeParseData.cs
- SymLanguageVendor.cs
- Quad.cs
- ReadOnlyHierarchicalDataSource.cs
- Accessors.cs
- Vector3DIndependentAnimationStorage.cs
- TextBlock.cs
- XmlStreamedByteStreamReader.cs
- TextSpan.cs
- XmlWriterSettings.cs
- WebServiceTypeData.cs
- TableStyle.cs
- safesecurityhelperavalon.cs
- CommonProperties.cs
- TemplateBamlTreeBuilder.cs
- EdmConstants.cs
- RoleManagerModule.cs
- isolationinterop.cs
- CompoundFileStreamReference.cs
- WizardForm.cs
- LinkUtilities.cs
- CompiledQueryCacheEntry.cs