EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElMessageSigner.Countersign

TElMessageSigner     See also    


 

Creates countersignature over document signature.

 
 

Declaration

[C#]
    int Countersign([in] byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize);

[VB.NET]
    Function Countersign(ByVal InBuffer as Byte(), ByRef OutBuffer as Byte(), ByRef OutSize as Integer) as Integer

[Pascal]
    function Countersign(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer) : integer;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

Parameters

  • InBuffer - Pointer to the data of the PKCS#7 format to sign
  • InSize - Size of input data in bytes
  • OutBuffer - Pointer to the buffer where signed data should be written
  • OutSize - Size of OutBuffer in bytes
 
 

Return value

    0 if the signing process was completed successfully.
    one of the following error codes otherwise,

 

[C#] [Pascal] [ActiveX] [DLL] Value Description
SB_MESSAGE_ERROR_NO_ENCRYPTED_DATA 8193 (0x2001) Message doesn't contain encrypted data
SB_MESSAGE_ERROR_NO_CERTIFICATE 8194 (0x2002)
  • Decryption/Signature verification: Certificate which was used to encrypt/sign message was not found.
  • Encryption/Signing: Certificate storage is empty.
  • Signing: Certificate storage doesn't contain any certificate with corresponding private key.
  • Decryption: The required certificate is found but it doesn't contain the corresponding private key.
  • SB_MESSAGE_ERROR_KEY_DECRYPTION_FAILED 8195 (0x2003) TElMessageDecryptor was unable to decrypt the content encryption key. The high possibility that message is corrupted.
    SB_MESSAGE_ERROR_BUFFER_TOO_SMALL 8196 (0x2004) The buffer for output data is too small. Check the OutSize property to obtain the required buffer size.
    SB_MESSAGE_ERROR_CONTENT_DECRYPTION_FAILED 8197 (0x2005) TElMessageDecryptor was unable to decrypt the content. The high possibility that message is corrupted.
    SB_MESSAGE_ERROR_INVALID_FORMAT 8198 (0x2006) The message passed to Decrypt/Verify routine is not valid PKCS7 message.
    SB_MESSAGE_ERROR_NO_RECIPIENTS 8199 (0x2007) CertStorage is empty or contains invalid certificates.
    SB_MESSAGE_ERROR_UNSUPPORTED_ALGORITHM 8200 (0x2008)
  • TElMessageDecryptor/ElMessageVerifier: The incoming message contains data encrypted using unsupported algorithm
  • TElMessageEncryptor/ElMessageSigner: Algorithm or DigestAlgorithm property is set to invalid value
  • SB_MESSAGE_ERROR_ENCRYPTION_FAILED 8201 (0x2009) TElMessageEncryptor was unable to encrypt message due to internal error
    SB_MESSAGE_ERROR_INVALID_KEY_LENGTH 8202 (0x200A) Property BitsInKey is set to invalid value.
    SB_MESSAGE_ERROR_NO_SIGNED_DATA 8203 (0x200B) No signed data was found.
    SB_MESSAGE_ERROR_INVALID_SIGNATURE 8204 (0x200C) Signed message contains invalid digital signature. The high possibility that signature was corrupted.
    SB_MESSAGE_ERROR_INVALID_DIGEST 8205 (0x200D) Signed message contains invalid message digest. The high possibility that original message was tampered.
    SB_MESSAGE_ERROR_SIGNING_FAILED 8206 (0x200E) TElMessageSigner was unable to sign message due to internal error
    SB_MESSAGE_ERROR_INTERNAL_ERROR 8207 (0x200F) Internal error occured. Please contact EldoS support.
    SB_MESSAGE_ERROR_INVALID_MAC 8208 (0x2010) Signed message contains invalid MAC signature. The high possibility that signature was tampered.
    SB_MESSAGE_ERROR_UNSUPPORTED_SIGNATURE_TYPE 8209 (0x2011) Message signature is of an unsupported type.
    SB_MESSAGE_ERROR_INVALID_COUNTERSIGNATURE 8210 (0x2012) The countersignature is not valid.
    SB_MESSAGE_ERROR_DIGEST_NOT_FOUND 8211 (0x2013) Cannot obtain message digest.
    SB_MESSAGE_ERROR_UNSUPPORTED_DIGEST_ALGORITHM 8212 (0x2014) Digest value is computed via an unsupported digest algorithm
    SB_MESSAGE_ERROR_CANCELLED_BY_USER 8213 (0x2015) The action is cancelled by user.
    SB_MESSAGE_ERROR_VERIFICATION_FAILED 8214 (0x2016) This error is reported if any exception is rised during message verification.
    SB_MESSAGE_ERROR_DIGEST_CALCULATION_FAILED 8215 (0x2017) This error is reported if any exception is rised during digest calculation.
    SB_MESSAGE_ERROR_MAC_CALCULATION_FAILED 8216 (0x2018) This error is reported, when MAC calculation is failed.
    SB_MESSAGE_ERROR_TSPCLIENT_NOT_FOUND 8217 (0x2019) This error is reported, when there is no object associated with TSP client
    SB_MESSAGE_ERROR_BAD_TIMESTAMP 8218 (0x201A) This error is reported, if message time stamp does not succeed verification
    SB_MESSAGE_ERROR_KEYOP_FAILED_RSA 8219 (0x201B) This error is reported, when operation with RSA key has failed
    SB_MESSAGE_ERROR_KEYOP_FAILED_DSA 8220 (0x201C) This error is reported, when operation with DSA key has failed
    SB_MESSAGE_ERROR_KEYOP_FAILED_RSA_PSS 8221 (0x201D) This error is reported, when operation with RSA PSS key has failed
    Declared in
    [.NET] [Pascal]
    Namespace: SBMessages
    Assembly: SecureBlackbox
    Unit: SBMessages

     
     

    Description

        Use this method to certify the existing document signatures (i.e., to countersign them). Countersigning is done using certificates contained in certificate storage specified by CertStorage property.
        Countersigning alters neither existing signatures nor signed document itself.

     
     

    See also:     CertStorage     Sign     ErrorInfo    

     
    Contact Us | Terms of Use | Trademarks | Privacy Statement
    Copyright (c) 1998-2012, EldoS Corporation