Creating a Private Key

Login to reply to this topic.
Wed, 2007-04-11 06:09
Joined: 2005-02-14
Forum posts: 19
In creating a private key with i/p parameters of moduls, exponents and the prime numbers, I see that we need to use  TASN1EncPKCS8::EncodeL();

This fn takes the private key details through CRSAPrivateKeyCRT object.

ANy Idea where this class is defined? Also, Is the CRSAPrivateKey defined at all?

Thanks,
Tanuja

Thu, 2007-04-12 09:53
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Creating a Private Key
I have no idea which SDK you're using. In the SDK I'm using, for example, there is no header file that contains such a class that is named TASN1EncPKCS8. Where is it defined?

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Thu, 2007-04-12 11:01
Joined: 2005-02-14
Forum posts: 19
Re: Creating a Private Key
Hi,

You can find the class TASN1EncPKCS8 in asnpkcs.h. It comes with TechView SDK available even in OS 7.0

Tanuja
Thu, 2007-04-12 11:19
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Creating a Private Key
Hi,

TechView? Isn't the SDK that Symbian uses internally? Is it publicly available to everyone? I haven't found any download page for that - I might be too clumsy.  Cry

Just out of curiosity: why are you using this SDK instead of S60, UIQ, etc. SDKs officially published by phone manufacturers?

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2007-04-13 05:56
Joined: 2005-02-14
Forum posts: 19
Re: Creating a Private Key
Yes. Techview is used internally by Symbian. I believe however that TechView of Symbian OS v7.0 is available for download. I got it with a book  I purchased.

It is also available for partners. The reason why Techview is used is - all components of an application that can be device independant (non-UI) components can be built using the TechView SDK.

These components can be used with any device of the same OS version.

Tanuja
Fri, 2007-04-13 08:47
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Creating a Private Key
Hmm, it's a nice idea to write a device independent application, but 1: Symbian OS v7.0 is rather old, consequently apps written on the top of that SDK might not be (properly) running on the latest devices. For example, a big bunch of new components are incompatible with their older versions due to the introduction of SOS with Platform Security.
2: I'm sure you're fully aware of the fact that using solely TechView makes it impossible for you to write applications with GUI that run on publicly available devices (i.e. phones). More importantly, a lot of complementary components come with an S60/UIQ/etc. SDK - you can't use them, either. That's true that you can write independent applications, but you're gonna be very limited in terms of what you can do with the help of your chosen SDK.

Btw, I'm sorry for not answering your question.  Grin

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2007-04-13 09:11
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Creating a Private Key
Okay, I've checked it out on my S60 SDK. The implementation of the below mentioned two classes are in X509.dll. You can import the corresponding lib file in your mmp as it's also available - again, in the S60 SDK. What about the API? That is not available in "my" SDK, either - and I guess that's on purpose. Symbian, Nokia - either or both did not want us to use it.

Sorry.  Sad

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2007-04-13 09:51
Joined: 2005-02-14
Forum posts: 19
Re: Creating a Private Key
Hi Tote,
Private Key generation being a part of cryptographic activity requires cryptographic APIs which are not available publicky. That is the primary reason I turned to look for some functions through the Techview of 7.0 Version, though I am currently targetting my app for a 9.1 device and I use the device SDK for all other purposes.

If I can have the cryptography module alone built for this app using the Techview I thought I will have proof that my app will also have the crypto module for it! Sad that even Techview has only part of the headers that are really of use!

Sad
Tanuja

Fri, 2007-04-13 10:40
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Creating a Private Key
I see. So you're using TechView to access APIs that are otherwise hidden (i.e. not available) in other SDKs, right? That would be an interesting point, but you can see that even this doesn't guarantee that you can solve every problem.  Cry

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

  • Login to reply to this topic.