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
- X509ChainPolicy.cs
- DataGridViewSelectedColumnCollection.cs
- PageRequestManager.cs
- WsiProfilesElement.cs
- EmptyWorkItem.cs
- AstTree.cs
- IriParsingElement.cs
- XmlNamedNodeMap.cs
- StorageMappingFragment.cs
- HostProtectionException.cs
- _HelperAsyncResults.cs
- Socket.cs
- XPathScanner.cs
- ColumnTypeConverter.cs
- HttpRequest.cs
- GeneralTransformCollection.cs
- WebBrowsableAttribute.cs
- DataTablePropertyDescriptor.cs
- EdmItemError.cs
- TraceSection.cs
- DownloadProgressEventArgs.cs
- SoapSchemaImporter.cs
- TextOnlyOutput.cs
- DBCommandBuilder.cs
- StackBuilderSink.cs
- DataObjectMethodAttribute.cs
- DependencyPropertyConverter.cs
- Style.cs
- DataGrid.cs
- DocumentCollection.cs
- ExpressionEditorAttribute.cs
- BindingList.cs
- FontInfo.cs
- PauseStoryboard.cs
- SQLCharsStorage.cs
- BufferedGraphics.cs
- GenericRootAutomationPeer.cs
- TreeIterators.cs
- CodeCompileUnit.cs
- ListViewItemEventArgs.cs
- ProfileParameter.cs
- TextRunTypographyProperties.cs
- SHA384.cs
- TreeViewDesigner.cs
- DispatchWrapper.cs
- VoiceChangeEventArgs.cs
- RegexNode.cs
- StateWorkerRequest.cs
- Scheduling.cs
- CodeGenerator.cs
- InProcStateClientManager.cs
- DateTimePicker.cs
- PropertyOverridesTypeEditor.cs
- SqlCommand.cs
- ArgumentValueSerializer.cs
- ModuleConfigurationInfo.cs
- TrackingExtract.cs
- Module.cs
- HScrollBar.cs
- InvokeMemberBinder.cs
- ChannelServices.cs
- HtmlValidationSummaryAdapter.cs
- Action.cs
- Region.cs
- MediaElementAutomationPeer.cs
- XmlLanguageConverter.cs
- DLinqColumnProvider.cs
- WorkerRequest.cs
- EventBuilder.cs
- MemoryMappedViewStream.cs
- DBConnection.cs
- BuilderInfo.cs
- OptimisticConcurrencyException.cs
- DataSourceControl.cs
- SqlDataRecord.cs
- IFlowDocumentViewer.cs
- TreeNodeMouseHoverEvent.cs
- Win32Exception.cs
- RoleServiceManager.cs
- DataPagerCommandEventArgs.cs
- KeyConverter.cs
- SqlFactory.cs
- ActivationArguments.cs
- DocumentSchemaValidator.cs
- MediaScriptCommandRoutedEventArgs.cs
- XmlWellformedWriter.cs
- WebPermission.cs
- CapabilitiesSection.cs
- InputMethodStateTypeInfo.cs
- SqlConnection.cs
- ChannelTerminatedException.cs
- MessageEventSubscriptionService.cs
- ServiceMemoryGates.cs
- InvalidOperationException.cs
- XmlValidatingReaderImpl.cs
- TraceContextRecord.cs
- PropertyPath.cs
- LockedAssemblyCache.cs
- AutoGeneratedFieldProperties.cs
- CryptoConfig.cs