Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Regarding the usage of "Security" object

0 replies · 1,435 views · Started 10 June 2004

Hi all,
You may probably know that it is not possible to use the Cryptography APIs in Symbian due to export restrictions. Hence Symbian provides a factory function 'Security' which is the implementation of the CSecurityBase.

It can be used as follows
CBoundedSecurityBase* encrypter = Security::NewL();

Now my problem is that I want to encrypt some blocks of data in a file and not the entire contents of the file. But this object seems to store the security data in the same file along with the encrypted contents.

Is it possible for me to write the security data in a separate file only once and use the same to do any number of encryptions ? If so then how ?
Also as I told before, I want to encrypt only chunks of data in the file. Some other contents need not be encrypted.

Does anyone know how this object works ? What algorithm does it use to encrypt ? One thing that I came to know is that it is probably using a block cipher symmetric algorithm with a block size of 32 Bytes.

Any help forthcoming will be appreciated.

Thanks

Regards
V R Krishna