Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / RemoteCryptoSignHashRequest.cs / 1 / RemoteCryptoSignHashRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.IO; using IDT=Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary: // SignHash request for RpcCrypto // internal class RemoteCryptoSignHashRequest : RpcCryptoRequest { byte[] m_signature; byte[] m_hash; int m_hashType; int m_flags; // // Summary: // Creates an RpcCrypto SignHash request. // // Arguments: // context: The RpcCryptoContext used for this request // hashType: The type of hash // flags: The CryptSignHash flags. // hash: The bytes of the hash value. // public RemoteCryptoSignHashRequest( RpcCryptoContext context, int hashType, int flags, byte[] hash ) : base( context ) { m_hash = hash; m_hashType = hashType; m_flags = flags; } // // Summary: // Gets the name of the request. // public override string Name { get{ return "RpcCryptoSignHashRequest"; } } // // Summery: // gets the signature buffer. // public byte[] GetSignature() { return m_signature; } // // Summary: // Marshal the outbound arguments. // protected override void MarshalOutArgs( Stream stream ) { BinaryWriter writer = new BinaryWriter( stream ); writer.Write( m_hashType ); writer.Write( m_flags ); writer.Write( m_hash.Length ); writer.Write( m_hash, 0, m_hash.Length ); } // // Summary: // Marshal the return arguments. // protected override void MarshalReturnArgs( Stream stream ) { BinaryReader reader = new InfoCardBinaryReader( stream ); m_signature = reader.ReadBytes( reader.ReadInt32() ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TailCallAnalyzer.cs
- parserscommon.cs
- Label.cs
- Base64Decoder.cs
- CapabilitiesPattern.cs
- SqlInfoMessageEvent.cs
- CaretElement.cs
- WindowsSysHeader.cs
- MessagingActivityHelper.cs
- Configuration.cs
- SqlDataSourceCache.cs
- SqlGenerator.cs
- DiagnosticsElement.cs
- DbConnectionHelper.cs
- VirtualDirectoryMappingCollection.cs
- KeyPullup.cs
- ExpandCollapsePattern.cs
- SettingsProperty.cs
- CompilerGlobalScopeAttribute.cs
- RTLAwareMessageBox.cs
- CommandBinding.cs
- AdornerPresentationContext.cs
- MexNamedPipeBindingElement.cs
- WebPartEditorApplyVerb.cs
- ParserExtension.cs
- DateTimeFormatInfoScanner.cs
- DynamicVirtualDiscoSearcher.cs
- Renderer.cs
- NCryptNative.cs
- XmlRawWriter.cs
- DataServiceBehavior.cs
- Column.cs
- IndexedString.cs
- PointCollection.cs
- SqlVersion.cs
- XmlSchemaComplexContentRestriction.cs
- RequestQueue.cs
- SourceItem.cs
- Normalization.cs
- QueryableDataSourceView.cs
- CopyEncoder.cs
- EdmError.cs
- RealProxy.cs
- WebResourceAttribute.cs
- XmlCollation.cs
- PartitionerStatic.cs
- ProcessHostFactoryHelper.cs
- ProfileGroupSettings.cs
- SimpleFileLog.cs
- CompiledRegexRunnerFactory.cs
- XPathNodeHelper.cs
- ItemMap.cs
- SQLDateTime.cs
- PrincipalPermission.cs
- CustomAttributeFormatException.cs
- DataGridTableCollection.cs
- ClientUrlResolverWrapper.cs
- EnglishPluralizationService.cs
- ResourceProviderFactory.cs
- InputScopeManager.cs
- DatagridviewDisplayedBandsData.cs
- WindowsListViewGroupHelper.cs
- XamlReaderHelper.cs
- Char.cs
- WebPartDisplayModeCancelEventArgs.cs
- TemplateBindingExtensionConverter.cs
- PixelFormatConverter.cs
- IdnMapping.cs
- DataGridViewCellLinkedList.cs
- WebPartMinimizeVerb.cs
- DifferencingCollection.cs
- TemplatedWizardStep.cs
- EventProviderBase.cs
- SizeValueSerializer.cs
- ScrollProperties.cs
- SmiEventStream.cs
- DesignerActionHeaderItem.cs
- DaylightTime.cs
- ThicknessConverter.cs
- ClassicBorderDecorator.cs
- XPathAxisIterator.cs
- XmlCDATASection.cs
- DataGridViewImageCell.cs
- Decorator.cs
- DataGridTableCollection.cs
- TableLayoutSettings.cs
- TypeAccessException.cs
- TypeLibConverter.cs
- MruCache.cs
- MSAANativeProvider.cs
- UnmanagedHandle.cs
- AuthenticatingEventArgs.cs
- DataGridRow.cs
- InlinedAggregationOperatorEnumerator.cs
- WeakRefEnumerator.cs
- ListBoxItemAutomationPeer.cs
- MSAANativeProvider.cs
- DigitShape.cs
- ProviderSettings.cs
- DataSetUtil.cs