EldoS | Feel safer!

Software components for data protection, secure storage and transfer

AES encryption with TElPKCS11SecretKeyObject

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 12/09/2011 08:44:04
by CHERUBIN Cyril (Standard support level)
Joined: 05/30/2008
Posts: 7

Hi all,

I would like to encryption in AES a file with a key stored in TElPKCS11Manager as a TElPKCS11SecretKeyObject.

I'm not able to encrypt with TElMessageEncryptor because this object need a TElX509Certificate like TElPKCS11CertificateObject but nothing for TElPKCS11SecretKeyObject.

How to encrypt with TElPKCS11SecretKeyObject ?

Thx for your support
Posted: 12/09/2011 09:03:19
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Encryption with HSM-based symmetric keys is only available in form that assumes usage of TElSymmetricCrypto object with a key provided as a TElSymmetricKeyMaterial object. Please use TElPKCS11CertStorage.Keys[] property to access the keys stored on the device, and assign the relevant key object to the TElSymmetricCrypto.KeyMaterial property. Then use Encrypt() and Decrypt() methods of the crypto class to encrypt and decrypt data.



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