Discuss this help topic in SecureBlackbox Forum

TElPGPCustomSecretKey.Sign

TElPGPCustomSecretKey     See also     


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


Creates a signature.

Declaration

[C#/Java]
    (1) void Sign(TElPGPSignature SubjectSignature, TElPGPSignature Signature);
    (2) void Sign(DateTime TimeStamp, TElPGPSignature Signature);
    (3) void Sign(TElPGPCustomPublicKey Key, TElPGPSignature Signature, TElPGPSignature EmbeddedSignature /* = null */);
    (4) void Sign(TElPGPPublicKey PublicKey, TElPGPCustomUser User, TElPGPSignature Signature, int CertType /* = 0 */);
    (5) void Sign(TElHashFunction HashFunction, TElPGPSignature Signature, int SignatureClass /* = 255 */);

[VB.NET]
    (1) Sub Sign(ByVal SubjectSignature As TElPGPSignature, ByVal Signature As TElPGPSignature)
    (2) Sub Sign(ByVal TimeStamp As DateTime, ByVal Signature As TElPGPSignature)
    (3) Sub Sign(ByVal Key As TElPGPCustomPublicKey, ByVal Signature As TElPGPSignature, ByVal EmbeddedSignature As TElPGPSignature = Nothing)
    (4) Sub Sign(ByVal PublicKey As TElPGPPublicKey, ByVal User As TElPGPCustomUser, ByVal Signature As TElPGPSignature, ByVal CertType As Integer = 0)
    (5) Sub Sign(ByVal HashFunction As TElHashFunction, ByVal Signature As TElPGPSignature, ByVal SignatureClass As Integer = 255)

[Pascal]
    (1) procedure Sign(SubjectSignature : TElPGPSignature; Signature : TElPGPSignature);
    (2) procedure Sign(TimeStamp : TDateTime; Signature : TElPGPSignature);
    (3) procedure Sign(Key : TElPGPCustomPublicKey; Signature : TElPGPSignature; EmbeddedSignature : TElPGPSignature = nil);
    (4) procedure Sign(PublicKey : TElPGPPublicKey; User: TElPGPCustomUser; Signature: TElPGPSignature; CertType : TSBPGPUserCertificationType = ctGeneric);
    (5) procedure Sign(HashFunction : TElHashFunction; Signature : TElPGPSignature; SignatureClass : integer = SB_PGP_SIGTYPE_NOTSPECIFIED);

Parameters

  • Signature - newly created signature will be placed here
  • SignatureClass -
  • SubjectSignature - signature to be signed
  • TimeStamp - time stamp
  • Key - subkey to be bound to the key
  • EmbeddedSignature - if Key can be used for signingthe second signature can be placed here. This parameter is optional.
  • PublicKey - some public key
  • User - the TElPGPUserIDor TElPGPUserAttr object that specifies the owner of the Key
  • CertType - certification type
  • HashFunction -

Protection type values


Signature classes


Description

    Use this method to produce different kinds of signatures.
    (1) Makes a third-party certification of the SubjectSignature.
    (2) Produces a timestamp signature.
    (3) Produces a subkey/primary key binding signature.
    (4) Produces a user certification signature.
    (5) Used to add signature trailer to MD context.

See also:     Revoke    

Discuss this help topic in SecureBlackbox Forum