Discuss this help topic in SecureBlackbox Forum

TElPGPCustomSecretKey.BeginGenerate

TElPGPCustomSecretKey     See also     


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


Starts asynchronous operation of generation of new key pair.

Declaration

[C#/Java]
    void BeginGenerate(int Bits, int Algorithm);

[VB.NET]
    Sub BeginGenerate(ByVal Bits As Integer, ByVal Algorithm As Integer)

[Pascal]
    procedure BeginGenerate(Bits : integer; Algorithm : TSBPGPPublicKeyAlgorithm);
    TSBPGPPublicKeyAlgorithm = integer;

[C++]
    void BeginGenerate(int32_t Bits, int32_t Algorithm);

[PHP]
    void BeginGenerate(integer $Bits, integer $Algorithm)

Parameters

  • Bits - key length in bits.
  • Algorithm - encryption algorithm.

Values:


Description

    Use this method to start generating new key pair asynchronously. By default key secret fields are not encrypted and there is no password. You can encrypt them later by changing password/symmetric encrypting algorithm.

    Use AsyncOperationFinished method to check when the operation is finished. Call EndGenerate to complete the asynchronous operation.

See also:     AsyncOperationFinished     CancelGeneration     EndGenerate    

Discuss this help topic in SecureBlackbox Forum