Discuss this help topic in SecureBlackbox Forum


TElPGPKeyring     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

Adds a public key to the key ring.


    int AddPublicKey(TElPGPPublicKey Key);

    Function AddPublicKey(ByVal Key As TElPGPPublicKey) As Integer

    function AddPublicKey(Key : TElPGPPublicKey) : integer;

    int32_t AddPublicKey(TElPGPPublicKey &Key);
    int32_t AddPublicKey(TElPGPPublicKey *Key);

    integer AddPublicKey(TElPGPPublicKey $Key)


  • Key - public key to be added.

Return value

    Index of the newly added key.


    Use this method when you need to add new public key to key ring. The key is added to key ring with all the corresponding subkeys, signatures and user-ids.
    If such key is already present in the keyring only new information (signatures, subkeys, UserID) will be added.
    Key is copied during adding so Key instance can be freed after call to this method.

See also:     AddSecretKey     AddX509Certitficate     FindPublicKeyByID     RemovePublicKey     Clear     ExportTo     Load     Save     PublicCount     PublicKeys    

Discuss this help topic in SecureBlackbox Forum