EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPGPReader.OnEncrypted

TElPGPReader     See also    


 

This event is fired when encrypted data is to be processed.

 
 

Declaration

[C#]
    event TSBPGPEncryptedEvent OnEncrypted;
    public delegate void TSBPGPEncryptedEvent(object Sender, byte[][] KeyIDs, bool IntegrityProtected, bool PassphraseUsed)

[VB.NET]
    Event OnEncrypted As TSBPGPEncryptedEvent
    Delegate Sub TSBPGPEncryptedEvent(ByVal Sender As Object, ByVal KeyIDs As Byte()(), ByVal IntegrityProtected As Boolean, ByVal PassphraseUsed As Boolean)

[Pascal]
    property OnEncrypted : TSBPGPEncryptedEvent;
    TSBPGPEncryptedEvent = procedure(Sender: TObject; const KeyIDs : TSBKeyIDs; IntegrityProtected: boolean; PassphraseUsed: boolean) of object;
    TSBKeyIDs = array of TSBKeyID;
    TSBKeyID = array[0..7] of byte;

[VB6]
    Event IElPGPReaderXEvents.OnEncrypted( KeyIDs, IntegrityProtected As Boolean, PassphraseUsed As Boolean) ' KeyIDs is a variant array of variant array (7) of Byte

[ActiveX]
    void IElPGPReaderXEvents.OnEncrypted( [in] VARIANT KeyIDs, [in] VARIANT_BOOL IntegrityProtected, [in] VARIANT_BOOL PassphraseUsed);
// KeyIDs is a variant array of variant array [0..7] of unsigned char

[DLL]
    not implemented;
 
 

Parameters

  • KeyIDs - array containing identifiers of keys used for message encryption. If this parameter is empty, only password encryption was used.
  • PassphraseUsed - shows if the message was encrypted with password. If this parameter is True and KeyIDs is not empty, both password and public key-based encryption was implemented.
  • IntegrityProtected - shows if integrity checking code is included.
 
 

Description

    This event is fired by TElPGPReader when it has to process encrypted data.
    Use KeyIDs parameter to find the key which is needed for decryption. Set decrypting key(s) as DecryptingKeys property inside this event handler.
    If message is encrypted using both passphrase and public key, the developer is allowed either to set an appropriate secret key in this event handler, or return a passphrase in OnPassphrase event handler. If an appropriate secret key is set in this event handler, the OnPassphrase event will not be fired.

 
 

See also:     OnArmored     OnCompressed     OnCreateOutputStream     OnKeyPassphrase     OnPassphrase     OnProgress     OnSigned    

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