Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 2 / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryCorrelationInitializer.cs
- HashStream.cs
- SQLSingleStorage.cs
- QueryValue.cs
- StoreConnection.cs
- PixelFormatConverter.cs
- RegistrationServices.cs
- ConfigXmlCDataSection.cs
- TrackingStringDictionary.cs
- RoleService.cs
- StrokeIntersection.cs
- Translator.cs
- CreatingCookieEventArgs.cs
- EventMappingSettings.cs
- DefaultEventAttribute.cs
- embossbitmapeffect.cs
- X509CertificateTrustedIssuerElementCollection.cs
- ControlCollection.cs
- NavigationPropertyEmitter.cs
- WorkflowServiceOperationListItem.cs
- BitmapPalette.cs
- SubqueryTrackingVisitor.cs
- BaseTreeIterator.cs
- CheckedPointers.cs
- ButtonAutomationPeer.cs
- Matrix.cs
- embossbitmapeffect.cs
- DbParameterCollection.cs
- RoleManagerSection.cs
- COM2ICategorizePropertiesHandler.cs
- DataDesignUtil.cs
- HandleCollector.cs
- XmlComplianceUtil.cs
- PopupEventArgs.cs
- DigitalSignature.cs
- RemoteWebConfigurationHostServer.cs
- NavigationProperty.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- XhtmlBasicPanelAdapter.cs
- ObjectSpanRewriter.cs
- TreeNodeCollectionEditor.cs
- SqlLiftWhereClauses.cs
- ToolStripItemRenderEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- DecimalStorage.cs
- SQLBoolean.cs
- StoreContentChangedEventArgs.cs
- HostProtectionPermission.cs
- GridViewDeletedEventArgs.cs
- DesignerDataConnection.cs
- URLMembershipCondition.cs
- XmlSerializer.cs
- MaskedTextProvider.cs
- DtrList.cs
- WindowsTreeView.cs
- WinEventTracker.cs
- XPathAncestorIterator.cs
- SymbolType.cs
- WmlMobileTextWriter.cs
- QuotedStringFormatReader.cs
- ExecutionEngineException.cs
- WindowsListViewItem.cs
- EventMemberCodeDomSerializer.cs
- SelectionService.cs
- SqlVisitor.cs
- WindowsEditBox.cs
- PathFigure.cs
- MessageEncodingBindingElementImporter.cs
- WebPartDisplayModeCancelEventArgs.cs
- Panel.cs
- SspiNegotiationTokenAuthenticator.cs
- SoapIgnoreAttribute.cs
- InputScope.cs
- CryptoApi.cs
- ViewEvent.cs
- HideDisabledControlAdapter.cs
- DataGridViewCellEventArgs.cs
- FileIOPermission.cs
- SerializationInfo.cs
- ActivityContext.cs
- XmlBufferReader.cs
- _Semaphore.cs
- SiteMapNodeItem.cs
- DesignerTransactionCloseEvent.cs
- RuntimeHelpers.cs
- FlowLayout.cs
- AuthenticationService.cs
- HttpServerUtilityBase.cs
- FontSizeConverter.cs
- Thread.cs
- LoginUtil.cs
- WebEventTraceProvider.cs
- JapaneseCalendar.cs
- BitmapDecoder.cs
- WebPartEditorCancelVerb.cs
- ObjectReaderCompiler.cs
- ProvidersHelper.cs
- __ConsoleStream.cs
- COAUTHINFO.cs
- PageAdapter.cs