EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ElMessageSigner and PKCS#12

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#21561
Posted: 09/17/2012 07:36:34
by Schwarz Wolfgang (Standard support level)
Joined: 09/13/2012
Posts: 3

In the decription of the 'ElMessageSigner class' I read that data could be in PKCS#7-Format.

But how can I sign in PKCS#12-Format ?

regards
Wolfgang Schwarz
#21562
Posted: 09/17/2012 07:41:25
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

PKCS#12 and PKCS#7 are different formats for different tasks.

SecureBlackbox allows to read and write PKCS#12 files using TElCustomCertStorage class. Could you describe your task in more details.
#21563
Posted: 09/17/2012 07:49:59
by Schwarz Wolfgang (Standard support level)
Joined: 09/13/2012
Posts: 3

Quote
Vsevolod Ievgiienko wrote:
Could you describe your task in more details.


I want that the ElMessageSigner.Sign Function saves the signed data in PKCS#12-Format.
#21564
Posted: 09/17/2012 07:50:41
by Eugene Mayevski (EldoS Corp.)

This makes no sense - PKCS#12 is not used to store data. This is a container for certificates and their private keys.


Sincerely yours
Eugene Mayevski
#21572
Posted: 09/17/2012 14:17:44
by Schwarz Wolfgang (Standard support level)
Joined: 09/13/2012
Posts: 3

Sorry my question was wrong.

I try again:

Within VB6 I need to sign an XML but TElXMLSigner is not available for VB6. Is there some possibility to do a RSA-sign (rsa-pkcs1-padding,
SH256) on some data and get the result as byte-Array, not enveloped in
PKCS7 to build my one XML-Sign.

regards
Wolfgang Schwarz
#21574
Posted: 09/17/2012 15:34:35
by Ken Ivanov (EldoS Corp.)

Schwarz,

Thanks for the clarification, now your goal is much more clear.

ActiveX edition includes low-level public key crypto classes. Please have a look at the ElRSAPublicKeyCryptoX class and particularly its SignDetached() method.
#21575
Posted: 09/17/2012 15:40:43
by Dmytro Bogatskyy (EldoS Corp.)

Quote
RSA-sign (rsa-pkcs1-padding, SH256) on some data

You may use TElRSAPublicKeyCrypto with rsapktPKCS1 option for CryptoType property to sign, and TElHashFunction to calculate SHA256 digest.
See:
http://www.eldos.com/documentation/sb...rypto.html
http://www.eldos.com/documentation/sb...ction.html

But also you would need to correctly canonicalize data, generate an xml tree and etc. Possible, it would be simpler to create a custom ActiveX control using Delphi for example, and then to use it in VB6.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 909 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!