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
- ControlEvent.cs
- InternalResources.cs
- HttpHostedTransportConfiguration.cs
- MachineKeyConverter.cs
- ArrayTypeMismatchException.cs
- FontDriver.cs
- ReadOnlyDataSource.cs
- RegistrationServices.cs
- HtmlTableRowCollection.cs
- ActivityXamlServices.cs
- TextBreakpoint.cs
- ConnectionProviderAttribute.cs
- XPathParser.cs
- Style.cs
- MSAAWinEventWrap.cs
- Attributes.cs
- StrongName.cs
- TriggerAction.cs
- WindowVisualStateTracker.cs
- DependencyPropertyConverter.cs
- ErrorActivity.cs
- HostedHttpContext.cs
- UserControlParser.cs
- TextTreeFixupNode.cs
- HttpModule.cs
- WebPartConnectionsCancelEventArgs.cs
- Converter.cs
- TemplateNameScope.cs
- ParallelActivityDesigner.cs
- DesignerHost.cs
- SmiEventSink.cs
- ErrorFormatter.cs
- ExtensionWindow.cs
- ModulesEntry.cs
- GlyphRun.cs
- Context.cs
- ActionItem.cs
- CodeRemoveEventStatement.cs
- TypeSystem.cs
- PermissionSetTriple.cs
- TemplatedMailWebEventProvider.cs
- CancelEventArgs.cs
- Line.cs
- CLSCompliantAttribute.cs
- COM2ExtendedUITypeEditor.cs
- SecurityPermission.cs
- OutOfMemoryException.cs
- RuntimeCompatibilityAttribute.cs
- Attributes.cs
- VideoDrawing.cs
- PartialTrustVisibleAssembliesSection.cs
- SQLMoney.cs
- PropertyConverter.cs
- DataSysAttribute.cs
- InternalConfigRoot.cs
- SqlCommand.cs
- SettingsContext.cs
- ZoneIdentityPermission.cs
- ReliabilityContractAttribute.cs
- DynamicEndpoint.cs
- SecUtil.cs
- TreeNodeStyle.cs
- AttachInfo.cs
- LongValidator.cs
- PageSettings.cs
- BlockCollection.cs
- ResXDataNode.cs
- HtmlContainerControl.cs
- EncodingDataItem.cs
- printdlgexmarshaler.cs
- IpcClientManager.cs
- TCPClient.cs
- ConfigUtil.cs
- MultiPartWriter.cs
- Object.cs
- ExpressionBuilderContext.cs
- ObjectSet.cs
- DataTableNameHandler.cs
- CustomErrorsSectionWrapper.cs
- SlipBehavior.cs
- TimelineCollection.cs
- TypeGeneratedEventArgs.cs
- XmlSignificantWhitespace.cs
- Stack.cs
- Int16Storage.cs
- TileBrush.cs
- AccessibleObject.cs
- shaperfactoryquerycachekey.cs
- SafeFileMappingHandle.cs
- DesignerAttribute.cs
- WebPartMinimizeVerb.cs
- TextAutomationPeer.cs
- ReservationNotFoundException.cs
- ConfigXmlWhitespace.cs
- BitVector32.cs
- SubclassTypeValidator.cs
- Material.cs
- AliasedExpr.cs
- FormDesigner.cs
- AutomationElement.cs