Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MatrixCamera.cs
- DocumentPageTextView.cs
- HtmlElement.cs
- PriorityBindingExpression.cs
- XmlSchemaSimpleType.cs
- SubpageParaClient.cs
- SoapSchemaExporter.cs
- FormsIdentity.cs
- AxisAngleRotation3D.cs
- LineProperties.cs
- CLRBindingWorker.cs
- SimpleModelProvider.cs
- ObjectDataProvider.cs
- CurrentTimeZone.cs
- SecurityState.cs
- CssClassPropertyAttribute.cs
- TypeExtensionConverter.cs
- KeyboardEventArgs.cs
- ParameterRetriever.cs
- RequestCache.cs
- RegisteredHiddenField.cs
- TableLayoutCellPaintEventArgs.cs
- embossbitmapeffect.cs
- PasswordPropertyTextAttribute.cs
- QilLiteral.cs
- HtmlInputImage.cs
- FamilyMapCollection.cs
- PopupRootAutomationPeer.cs
- TabControlDesigner.cs
- CompilerGeneratedAttribute.cs
- ClientCultureInfo.cs
- WebServiceHostFactory.cs
- XmlSchemaSequence.cs
- PaperSize.cs
- ProcessManager.cs
- COAUTHINFO.cs
- SessionState.cs
- ExpressionContext.cs
- dsa.cs
- XmlSchemaImport.cs
- CookieProtection.cs
- TaskFileService.cs
- SignedPkcs7.cs
- TextParagraph.cs
- EntityCommandDefinition.cs
- DynamicILGenerator.cs
- ValueProviderWrapper.cs
- FontStretch.cs
- ValueOfAction.cs
- XamlStream.cs
- TreeView.cs
- TreeWalker.cs
- MetadataArtifactLoaderFile.cs
- SmiEventSink_Default.cs
- FunctionDetailsReader.cs
- StyleCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- AutomationPropertyInfo.cs
- PolyLineSegmentFigureLogic.cs
- XmlLanguageConverter.cs
- WpfKnownMember.cs
- ManagementException.cs
- DataMemberAttribute.cs
- IPHostEntry.cs
- X509SubjectKeyIdentifierClause.cs
- CommandHelpers.cs
- PolicyFactory.cs
- SoapAttributeAttribute.cs
- RichTextBoxAutomationPeer.cs
- ListItemConverter.cs
- RestHandler.cs
- HandlerMappingMemo.cs
- ProgramPublisher.cs
- OdbcConnection.cs
- MultilineStringConverter.cs
- XmlLinkedNode.cs
- ByteStream.cs
- UserControlCodeDomTreeGenerator.cs
- NativeMethods.cs
- WindowsSpinner.cs
- PromptBuilder.cs
- HelpEvent.cs
- Token.cs
- _ConnectStream.cs
- CapiHashAlgorithm.cs
- TraceRecords.cs
- TextEditorContextMenu.cs
- localization.cs
- Base64Encoder.cs
- CounterCreationData.cs
- ExeConfigurationFileMap.cs
- DataGridTable.cs
- HttpListenerPrefixCollection.cs
- TextEditorMouse.cs
- UrlParameterReader.cs
- EntityCommandDefinition.cs
- ColorDialog.cs
- ZipIOExtraFieldZip64Element.cs
- DataSvcMapFileSerializer.cs
- MediaPlayerState.cs