Discuss this help topic in SecureBlackbox Forum


Declared in     See also     

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

A callback function that delegates the signature computation.


    delegate bool TSBCMSRemoteSignCallback(object Sender, object Param, byte[] Hash, ref byte[] SignedHash);

    Delegate Function TSBCMSRemoteSignCallback(ByVal Sender As Object, ByVal Param As Object, ByVal Hash As Byte(), ByRef SignedHash As Byte()) As Boolean

    TSBCMSRemoteSignCallback = function(Sender : TObject; Param : TObject; const Hash : ByteArray; var SignedHash : ByteArray) : boolean of object;

    typedef void (SB_CALLBACK *TSBCMSRemoteSignCallback)(void * _ObjectData, TObjectHandle Sender, TObjectHandle Param, const uint8_t pHash[], int32_t szHash, uint8_t pSignedHash[], int32_t * szSignedHash, int8_t * OutResult);


  • Param - a reference to the object which contains additional information about the file being signed.
  • Hash - contains the computed hash value.
  • pHash - (C++ only) a pointer to the hash value.
  • szHash - (C++ only) specifies the size of the hash in bytes.
  • SignedHash - the signed hash value should be passed ia this parameter.
  • pSignedHash - (C++ only) a pointer to the signed hash value.
  • szSignedHash - (C++ only) specifies the size of the signed hash in bytes.

Return value

    Returns True if signing is successful, and False otherwise.


    When the CMS signature computation is delegated to the third-party application, this function has to receive the hash value, pass it to the signer, obtain the signature value and send it back to the component. The function should return True on success, and False if an error was encountered. If the function returns False, EElCMSError exception is risen by the signer component.

Declared in

  • Namespace: SBCMS
  • Assembly: SecureBlackbox.PKI
  • Unit: SBCMS
  • Package: SecureBlackbox.PKI.jar
  • sbcms.h

See also:     SignRemote     RemoteSignCallback    

Discuss this help topic in SecureBlackbox Forum