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
- SimpleTextLine.cs
- StickyNoteHelper.cs
- StickyNoteContentControl.cs
- ArgumentValueSerializer.cs
- TextTreeDeleteContentUndoUnit.cs
- Comparer.cs
- XsdCachingReader.cs
- ToolConsole.cs
- TokenBasedSet.cs
- FileSecurity.cs
- SqlDataSourceCache.cs
- DataGridViewTextBoxEditingControl.cs
- ByteStorage.cs
- Win32MouseDevice.cs
- ToolStripLabel.cs
- StrokeSerializer.cs
- MetabaseServerConfig.cs
- ResolveMatchesCD1.cs
- TextReader.cs
- Brush.cs
- SHA384.cs
- ZipIOCentralDirectoryFileHeader.cs
- CngAlgorithmGroup.cs
- FrameSecurityDescriptor.cs
- TemplateColumn.cs
- TextSimpleMarkerProperties.cs
- BitmapEffectState.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DataBoundControlAdapter.cs
- ProcessHostServerConfig.cs
- HttpCachePolicyElement.cs
- StylusPointCollection.cs
- DesignerOptions.cs
- MaterialGroup.cs
- DocumentScope.cs
- GatewayDefinition.cs
- TraceContextEventArgs.cs
- PropertyItemInternal.cs
- SQLInt32.cs
- XmlCharCheckingReader.cs
- glyphs.cs
- ButtonBase.cs
- PreservationFileWriter.cs
- TripleDESCryptoServiceProvider.cs
- SessionEndedEventArgs.cs
- WebControlParameterProxy.cs
- GridItemPattern.cs
- Rules.cs
- GlyphTypeface.cs
- NoneExcludedImageIndexConverter.cs
- Handle.cs
- MatrixAnimationUsingKeyFrames.cs
- ContentHostHelper.cs
- SHA512Managed.cs
- PreviewKeyDownEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- SqlProfileProvider.cs
- MapPathBasedVirtualPathProvider.cs
- CoreSwitches.cs
- TcpChannelListener.cs
- RequestStatusBarUpdateEventArgs.cs
- FormViewRow.cs
- OdbcConnectionFactory.cs
- SqlWriter.cs
- WebPartHeaderCloseVerb.cs
- InstanceNameConverter.cs
- TextElementCollection.cs
- FontFamilyValueSerializer.cs
- DataSourceSelectArguments.cs
- SessionParameter.cs
- FormsAuthenticationEventArgs.cs
- HtmlElementCollection.cs
- ListView.cs
- OutputCacheProfile.cs
- UnsafeNativeMethodsPenimc.cs
- SiteOfOriginContainer.cs
- XmlChoiceIdentifierAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- precedingsibling.cs
- ListViewCommandEventArgs.cs
- Mouse.cs
- XmlHierarchicalDataSourceView.cs
- FacetValues.cs
- BindingCollectionElement.cs
- FileSecurity.cs
- OperationResponse.cs
- StringKeyFrameCollection.cs
- XMLUtil.cs
- Int32KeyFrameCollection.cs
- ellipse.cs
- MetabaseServerConfig.cs
- FastEncoderWindow.cs
- OrthographicCamera.cs
- ComponentEvent.cs
- _LocalDataStoreMgr.cs
- ApplicationInterop.cs
- OperationDescriptionCollection.cs
- OperationResponse.cs
- DomainLiteralReader.cs
- WebPartConnectionsCloseVerb.cs