Discuss this help topic in SecureBlackbox Forum


TElPGPKeyring     See also     

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

Adds a secret key to the key ring.


    int AddSecretKey(TElPGPSecretKey Key);

    Function AddSecretKey(ByVal Key As TElPGPSecretKey) As Integer

    function AddSecretKey(Key : TElPGPSecretKey) : integer;

    int32_t AddSecretKey(TElPGPSecretKey &Key);
    int32_t AddSecretKey(TElPGPSecretKey *Key);

    integer AddSecretKey(TElPGPSecretKey $Key)


  • Key - secret key to be added.

Return value

    Index of the newly added key.


    Use this method when you need to add new secret key to the key ring. 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 the call to this method.

See also:     AddPublicKey     AddX509Certitficate     FindSecretKeyByID     RemoveSecretKey     Clear     ExportTo     Load     Save     SecretCount     SecretKeys    

Discuss this help topic in SecureBlackbox Forum