EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PDF Digital Signature on iOS (C++): Unicode module initialisation

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#26735
Posted: 10/07/2013 07:25:30
by Francesco Tartaggia (Basic support level)
Joined: 10/07/2013
Posts: 5

Hello everybody,

I've just downloaded SecureBlackBox C++ edition for Mac and iOS (trial) and managed to have my project link with the static SBB library. But when I try to open a PDF file I get an exception saying I need to initialise the Unicode module. But I cannot find any documentation about C++ edition explaining how to do this.

Can you help me, please?

Thanks in advance

francesco tartaggia
#26736
Posted: 10/07/2013 07:40:42
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. You should call
Code
   TElUnicodeConverter *converter = new TElUnicodeConverter();
   SetGlobalConverter(*converter);


Actually, there is an iOS PDF signing/verification sample in Samples/PDFBlackbox/iOSPDF folder, please check it.
#26737
Posted: 10/07/2013 07:48:57
by Francesco Tartaggia (Basic support level)
Joined: 10/07/2013
Posts: 5

Oh, I didn't realize there was a new release! Thanks for your help! Do you support iOS7?
#26738
Posted: 10/07/2013 07:56:48
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Actually, there is nothing specific to iOS version. The only thing is that we support only armv7 architecture at the moment, however this is not a problem - this is architecture on which iPhone 4/5 run, and later models are backward-compatible.
Right after FreePascal compiler support armv7s/arm64 we will support it as well.
#26740
Posted: 10/07/2013 08:36:20
by Francesco Tartaggia (Basic support level)
Joined: 10/07/2013
Posts: 5

I'm trying to get iOSPDF example running on an iPhone 4S. I had to add 2 header files but that's not a problem... but I can't get the app to load either cert.pfx or child_cert.pfx using "password" password: I get error 1f13. The password is correct, I tried to open the cert file on my mac with openssl and it works.

Do you have any idea about what I'm missing?
#26743
Posted: 10/07/2013 09:07:54
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Strange, got the same issue on my side. I will investigate it and write back to you.
#26744
Posted: 10/07/2013 09:10:23
by Francesco Tartaggia (Basic support level)
Joined: 10/07/2013
Posts: 5

I had a similar issue with the previous release, and then I changed certificate->LoadFromStreamAuto to certificate->LoadFromStreamPFX. But this time it doesn't solve the issue
#26751
Posted: 10/08/2013 03:36:29
by Francesco Tartaggia (Basic support level)
Joined: 10/07/2013
Posts: 5

Hi Mykola, do you have any news about the issue?
#26754
Posted: 10/08/2013 06:15:58
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Unfortunately, no - I'm still digging into it.
#26773
Posted: 10/10/2013 05:54:44
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Sorry for a delay with answer. The problem is in FreePascal compiler, which incorrectly compile our DES algorithm implementation. We contacted Freepascal team, however this can take some time to release a fixed version.
At the moment you can use certificates which are not encrypted with password, or encrypted with other algorithm - they should work.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 3250 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!