Archived Forum Post

Index of archived forum posts

Question:

VerifyStringENC on chilkat C

Aug 18 '16 at 08:47

I'm using chilkat lib C with code as below:

CkRsa rsa;
    rsa.put_EncodingMode("hex");
    rsa.put_Utf8(true);
    rsa.put_Charset("utf-8");
    string publicKey = AccountModel::getInstance()->getKeypublic();
    rsa.ImportPublicKey(publicKey.c_str());
    bool veri = false;
    veri = rsa.VerifyStringENC(decryptStr.c_str(), "sha-1", signature.c_str());
    ----------
    But i meet an error as below
    08-18 14:11:01.349: V/LIB_SECURITY(10777): Error  ChilkatLog:
08-18 14:11:01.349: V/LIB_SECURITY(10777):   VerifyStringENC:
08-18 14:11:01.349: V/LIB_SECURITY(10777):     DllDate: Mar 11 2016
08-18 14:11:01.349: V/LIB_SECURITY(10777):     ChilkatVersion: 9.5.0.56
08-18 14:11:01.349: V/LIB_SECURITY(10777):     UnlockPrefix: NGUYENRSA
08-18 14:11:01.349: V/LIB_SECURITY(10777):     Architecture: Little Endian; 32-bit
08-18 14:11:01.349: V/LIB_SECURITY(10777):     Language: Android C/C++
08-18 14:11:01.349: V/LIB_SECURITY(10777):     VerboseLogging: 0
08-18 14:11:01.349: V/LIB_SECURITY(10777):     signature: A08D5610C291A393EC6DB490FC47520166947EA6C59B6EF5EFBE8283C8957CB22569906F1CA3B76B3BB5F9D9CBB7CA540328E952D4CBA74D70DDBB1810480DE0F4190ED6056E3A0305AF944292FB97853A1E56F68188666B6E63706531D0BA268AB66194CB777C88D782E2B41E690FE9D111760AFDF226903665B3E66B15994909EB8BCFF45DF3BDAB09F54A44CABC17D5BF99475168879359DC1F6CA722AD4CE731D0C9E6D6A6217FA5A3BFF943CC564FBEEDEEE5CAE6722099C220FE2817EB473B93B3A9E86B20ABD5ABC7CF6CA7987B14A5FEFB1173FD18E0A480E2636A5365F0892EAFB4D32C450242696BBAAA1873D5F4BC428029B022FFCB7368759904
08-18 14:11:01.349: V/LIB_SECURITY(10777):     sigStrLen: 512
08-18 14:11:01.349: V/LIB_SECURITY(10777):     hashAlgorithm: sha-1
08-18 14:11:01.349: V/LIB_SECURITY(10777):     rsaVerifyBytes:
08-18 14:11:01.349: V/LIB_SECURITY(10777):       dataSize: 1559
08-18 14:11:01.349: V/LIB_SECURITY(10777):       signatureSize: 256
08-18 14:11:01.349: V/LIB_SECURITY(10777):       hashSize: 20
08-18 14:11:01.349: V/LIB_SECURITY(10777):       hashBytes: 6C7B 3229 3686 48A1 EADC 5F1D C389 E143
08-18 14:11:01.349: V/LIB_SECURITY(10777): A464 67C1
08-18 14:11:01.349: V/LIB_SECURITY(10777):       Using PKCS 1.5 decoding
08-18 14:11:01.349: V/LIB_SECURITY(10777):     --rsaVerifyBytes
08-18 14:11:01.349: V/LIB_SECURITY(10777):     Success.
08-18 14:11:01.349: V/LIB_SECURITY(10777):   --VerifyStringENC
08-18 14:11:01.349: V/LIB_SECURITY(10777): --Chi

Please help me to solve this. Cause error ?


Answer

There is no error here. The call to VerifyStringENC was successful.

NOTE: The LastErrorText will always contain information about the method call -- even when successful. This provides a means to get information in the case when a method claims success, but did not behave in an expected way.