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
- ContentHostHelper.cs
- InlineCollection.cs
- Vector3DCollection.cs
- Encoder.cs
- FormsAuthenticationConfiguration.cs
- TextComposition.cs
- EmptyCollection.cs
- CompositeControl.cs
- SqlConnectionManager.cs
- ToolStripCodeDomSerializer.cs
- BitmapInitialize.cs
- DictionaryEntry.cs
- SerializerDescriptor.cs
- HandleCollector.cs
- PrincipalPermissionMode.cs
- PnrpPeerResolver.cs
- ConsumerConnectionPointCollection.cs
- KnowledgeBase.cs
- ServerIdentity.cs
- EventSetter.cs
- PersistenceParticipant.cs
- WebPartActionVerb.cs
- WeakHashtable.cs
- TabItemWrapperAutomationPeer.cs
- NonVisualControlAttribute.cs
- Convert.cs
- StringBuilder.cs
- BrushMappingModeValidation.cs
- MetadataItem.cs
- NonSerializedAttribute.cs
- SqlCommand.cs
- XmlEncoding.cs
- CollectionBase.cs
- ResourceReferenceExpression.cs
- SizeIndependentAnimationStorage.cs
- CallTemplateAction.cs
- HitTestWithGeometryDrawingContextWalker.cs
- OrderedDictionary.cs
- X509ChainPolicy.cs
- Hashtable.cs
- PaperSource.cs
- WebBrowserEvent.cs
- SQLDecimalStorage.cs
- CheckBoxAutomationPeer.cs
- CompilerGlobalScopeAttribute.cs
- PageAdapter.cs
- TextEditorMouse.cs
- SystemIPAddressInformation.cs
- EncryptedKey.cs
- UIElementAutomationPeer.cs
- TableLayoutColumnStyleCollection.cs
- DataObjectFieldAttribute.cs
- Set.cs
- CompilerError.cs
- Missing.cs
- WindowsScrollBarBits.cs
- HttpListenerRequest.cs
- RectangleGeometry.cs
- XslVisitor.cs
- TrackingLocation.cs
- XamlRtfConverter.cs
- AsyncOperation.cs
- updatecommandorderer.cs
- PropertyMapper.cs
- OrderedDictionaryStateHelper.cs
- Profiler.cs
- QilBinary.cs
- ComboBoxRenderer.cs
- XmlSchemaGroupRef.cs
- SqlAliasesReferenced.cs
- XhtmlBasicControlAdapter.cs
- CompileXomlTask.cs
- formatter.cs
- CodeSubDirectoriesCollection.cs
- XmlTypeMapping.cs
- QuaternionRotation3D.cs
- Knowncolors.cs
- LiteralDesigner.cs
- CodeFieldReferenceExpression.cs
- SmtpCommands.cs
- WindowsRichEdit.cs
- DynamicPropertyHolder.cs
- RegionData.cs
- NumberFunctions.cs
- HwndSubclass.cs
- UnsafeNativeMethods.cs
- ProjectionNode.cs
- ChtmlCalendarAdapter.cs
- NameTable.cs
- SymbolTable.cs
- DataContractSerializerOperationGenerator.cs
- DataGridViewCell.cs
- Size3DValueSerializer.cs
- AnnotationObservableCollection.cs
- ConsoleTraceListener.cs
- ACL.cs
- BinaryUtilClasses.cs
- PaintValueEventArgs.cs
- ControlOperationInvoker.cs
- HttpAsyncResult.cs