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
- WrappedOptions.cs
- ConnectionProviderAttribute.cs
- SqlInternalConnectionTds.cs
- DataRowCollection.cs
- Attribute.cs
- PropertyDescriptor.cs
- Int32Converter.cs
- XmlUTF8TextWriter.cs
- _ListenerRequestStream.cs
- BamlBinaryReader.cs
- _NegotiateClient.cs
- RoleManagerModule.cs
- SystemNetHelpers.cs
- XmlEncoding.cs
- DataGridViewLinkColumn.cs
- FigureParaClient.cs
- BooleanExpr.cs
- TextStore.cs
- mediaeventargs.cs
- CompiledXpathExpr.cs
- ContentHostHelper.cs
- EntitySetRetriever.cs
- ImplicitInputBrush.cs
- MobileControlPersister.cs
- MimeTextImporter.cs
- Italic.cs
- BamlMapTable.cs
- OverrideMode.cs
- UniqueTransportManagerRegistration.cs
- PerformanceCountersElement.cs
- OleDbParameterCollection.cs
- OdbcRowUpdatingEvent.cs
- TranslateTransform.cs
- DynamicObject.cs
- TextRange.cs
- CorruptingExceptionCommon.cs
- ThousandthOfEmRealPoints.cs
- FileRegion.cs
- XmlProcessingInstruction.cs
- EventQueueState.cs
- ChtmlMobileTextWriter.cs
- TextBox.cs
- MemoryMappedFile.cs
- ChangeTracker.cs
- PrinterUnitConvert.cs
- RadioButtonList.cs
- CompilerError.cs
- FieldNameLookup.cs
- Utils.cs
- HostProtectionPermission.cs
- OneOfElement.cs
- CancelEventArgs.cs
- PeerChannelFactory.cs
- WaitingCursor.cs
- Run.cs
- DataSourceUtil.cs
- ReadOnlyNameValueCollection.cs
- ConnectionManagementElement.cs
- HttpValueCollection.cs
- LocalizationParserHooks.cs
- LeftCellWrapper.cs
- CompositionAdorner.cs
- AssertValidation.cs
- shaperfactoryquerycachekey.cs
- VerticalAlignConverter.cs
- FormattedTextSymbols.cs
- TreeNodeCollectionEditor.cs
- ImportOptions.cs
- DaylightTime.cs
- TreeViewItem.cs
- DetailsViewModeEventArgs.cs
- PaperSource.cs
- _BasicClient.cs
- HostProtectionPermission.cs
- Int32RectValueSerializer.cs
- BinaryReader.cs
- SiteMapProvider.cs
- PropertyDescriptorCollection.cs
- InstanceStoreQueryResult.cs
- TransactionManager.cs
- HTMLTagNameToTypeMapper.cs
- QuotedStringFormatReader.cs
- OperationResponse.cs
- StringValidator.cs
- TerminateWorkflow.cs
- NonClientArea.cs
- SortedSetDebugView.cs
- TerminatorSinks.cs
- NestedContainer.cs
- AmbientLight.cs
- TakeOrSkipWhileQueryOperator.cs
- XamlStream.cs
- PieceNameHelper.cs
- TimeSpanMinutesConverter.cs
- Brush.cs
- MetadataArtifactLoaderFile.cs
- ToolStripRendererSwitcher.cs
- CellCreator.cs
- StateValidator.cs
- KeyEvent.cs