EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPGPWriter.Sign

TElPGPWriter     See also    


 

Signs ASourceStream stream.

 
 

Declaration

[C#]
    void Sign(System.IO.Stream ASourceStream, System.IO.Stream ADestStream, bool Detached /* = false */, int Count /* = 0 */);

[VB.NET]
    Sub Sign(ByVal ASourceStream As System.IO.Stream, ByVal ADestStream As System.IO.Stream, ByVal Detached As Boolean = False, ByVal Count As Integer = 0)

[Pascal]
    procedure Sign(ASourceStream, ADestStream : TStream; Detached : boolean = false; Count : integer = 0);

[VB6]
    Sub Sign(ByVal InStream As IUnknown, ByVal OutStream As IUnknown, ByVal Detached As Boolean, ByVal Count As Integer)


[ActiveX]
    HRESULT _stdcall Sign( [in] IUnknown * InStream, [in] IUnknown * OutStream, [in] VARIANT_BOOL Detached, [in] long Count);

[DLL]
    not implemented;
 
 

Parameters

  • ASourceStream (InStream) - stream to be signed.
  • ADestStream (OutStream) - resulting stream.
  • InFile - file to be encrypted.
  • OutFile - resulting file.
  • Detached - Defines if the detached signature must be created.
    Default value is False
  • Count - the number of bytes to be read from ASourceStream. If this parameter is 0 data is read till the end of the stream.
    Default value is 0.
 
 

Description

    This method signs data from ASourceStream and returns result via ADestStream.
    Use Count parameter to read specified number of bytes from ASourceStream. Set this parameter value to 0 in order to read all data till the stream end.
    Use Detached parameter to specify if signature must be detached. If this parameter value is True only signature will be written to resulting stream. If False signature will be written together with original data.
    Depending on Compress and Armor property values data can be compressed before signing and armored (wrapped into base64 envelope) after this.

[ActiveX]
    Note: Stream parameter expects an object which implements IStream interface.

[Pascal]
    Note: in the Delphi versions older than 7, works only with streams of sizes smaller than 2GB (because of TStream limitation). Use SignFile instead.

 
 

See also:     Armor     ClearTextSign     Encrypt     EncryptAndSign     EncryptAndSignFile     SignFile     SymmetricKeyAlgorithm    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation