Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Contributor cdavies's Avatar
    Join Date
    May 2007
    Posts
    463
    An exciting day for Symbian developers, you no longer need to rely on OpenSSL for all your crypto needs (at least for 9.1+...) because the Symbian crypto library headers and libs are at long last published...

    Get them here: http://developer.symbian.com/forum/ann.jspa?annID=14

    The crypto library adds asymmetric ciphers RSA, DSA and DH and symmetric ciphers AES, 3DES, DES, RC4, RC2 to the already published hash library.

    In addition, you get a trimmed down version of the big integer library including support for generating large primes, various sorts of block cipher padding, and PBE.

    No PKCS decoders or unified keystore published yet, we can but hope.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  2. #2
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    or ECC or FIPS compliance but then again its not in the devkits either....

    I posted a blog entry about it last night, the petran example code is also being shipped

  3. #3
    Registered User mayur_24's Avatar
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    762
    Quote Originally Posted by cdavies View Post
    An exciting day for Symbian developers, you no longer need to rely on OpenSSL for all your crypto needs (at least for 9.1+...) because the Symbian crypto library headers and libs are at long last published...

    Get them here: http://developer.symbian.com/forum/ann.jspa?annID=14

    The crypto library adds asymmetric ciphers RSA, DSA and DH and symmetric ciphers AES, 3DES, DES, RC4, RC2 to the already published hash library.

    In addition, you get a trimmed down version of the big integer library including support for generating large primes, various sorts of block cipher padding, and PBE.

    No PKCS decoders or unified keystore published yet, we can but hope.
    That is some good news.
    So no more porting hassles .
    --Mayur.

  4. #4
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi all,

    Can this Crypto Library be used with S60 2nd Edition? Just wondering, though I went to the link and realised its for 3rd edition only.

    *Hoping that someone would reply "yes"

    Thanks.

  5. #5
    Registered User mayur_24's Avatar
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    762
    The answer is a 'NO'.
    The device binaries are ARMV5 not ARMI so they are not binary compatible with 2nd edition devices at all.
    --Mayur.

  6. #6
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi,

    Thanks for the reply! Do you know, by chance, of any 3rd party Encryption method that is usable for s60 2nd edition? I would require 3DES encryption though.

    Thanks

  7. #7
    Registered User mayur_24's Avatar
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    762
    You can check out this library:
    http://www.eskimo.com/~weidai/cryptlib.html
    Also usually with the encryption standard you get a default implentation,you can try using that as well.
    http://archive.devx.com/sourcebank/d...rceNum=1028081
    --Mayur.

  8. #8
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi Mayur,

    Appreciated your reply. But looks like porting over from these libraries you had mentioned needs quite a bit of work here. (just started on symbian c++ learning only)

    Guess I have to work harder

    Thanks.

  9. #9
    Registered User mayur_24's Avatar
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    762
    Yes,you are welcome and as you said it would be better to finish off Symbian c++ basics first.
    And porting is usually a tiresome job.
    --Mayur.

  10. #10
    Regular Contributor pzul_wisner's Avatar
    Join Date
    Mar 2003
    Location
    Cambridge, Massachusetts, USA
    Posts
    87
    The openSSL libraries are also available with Open C.

  11. #11
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi all,

    I have tried to port over a 3des code from http://xyssl.org/code/source/des/

    I can compile it successfully on Symbian with minor changes.

    However, I can't seem to encrypt any message with it. It returns me with error. [I'm using s60 3rd edition]

    Can someone take a look at the codes and see whether is it compatible with Symbian?

    Thanks deeply.

  12. #12
    Registered User mayur_24's Avatar
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    762
    Quote Originally Posted by b0ssY View Post
    Hi all,

    I have tried to port over a 3des code from http://xyssl.org/code/source/des/

    I can compile it successfully on Symbian with minor changes.

    However, I can't seem to encrypt any message with it. It returns me with error. [I'm using s60 3rd edition]

    Can someone take a look at the codes and see whether is it compatible with Symbian?

    Thanks deeply.
    I had a quick glance and the code seems fine.
    Can you point out what error code you are getting?
    --Mayur.

  13. #13
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi Mayur,

    Thanks for your reply as always I didn't know if I port it successfully (or correctly I meant). I kept the unsigned chars and unsigned longs -> is that alright with Symbian? Because I know there's this TUint8s and TUint32s that represent unsigned char and unsigned long respectively. Should I use them instead?

    I also included the epoc32/include/libc for <string.h> in the 3des.h file (as what I called it). And it compiles successfully after that. Do I need to create a class for it? As I noticed that it has no class to it.

    The method I did to do 3des operation was:

    des3_context* a;
    des3_set_3key(a,key) <-- key is unsigned char[24], does this mean its a 24-byte key?

    At this point, the program gave me an error: App Closed: encrypt (that's my program's name)
    Sorry if I made stupid mistakes because my C++ isn't that good too.

    Thanks for any input given. Awaiting eagerly.

    b0ssY

  14. #14
    Regular Contributor cdavies's Avatar
    Join Date
    May 2007
    Posts
    463
    Yes, 3DES uses a key totalling 24 bytes in length. Think of it as keying 3 separate DES implementations, each requiring 8 bytes of key material (or, er, 7 bytes of key material and some parity bits *cough* NSA paranoia *cough*)

    The code isn't after a string for this parameter, it needs a full 24 byte key which is usually generated by a psuedo-random function seeded by the passphrase.

    Your other problem is the context parameter. This is essentially C-style code. It's expecting something of the form:

    Code:
    des3_context context;
    des3_set_3key(&context, key);
    Again, I have to say, if you don't know what you're doing with encryption and decryption don't try until you do. There are so many potential pitfalls that will mean your program offers no security whatsoever, you have to understand them to be able to avoid them.
    Last edited by cdavies; 2007-08-25 at 10:25.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  15. #15
    Regular Contributor b0ssY's Avatar
    Join Date
    May 2007
    Posts
    53
    Hi cdavies,

    Thanks for your helpful input! Perhaps I should read up some books on encryption/decryption

    Hmm, actually I'm happy just to be able to get this triple-des implementation up and working first, after which I will then try to understand what problems are there with this encryption/decryption concept... Then I will try and improve the security of my program then.

    So sorry if I sound like those people who want to get something working without knowing what is the thing about...

    Thanks!
    b0ssY

Page 1 of 2 12 LastLast

Similar Threads

  1. Porting openCV library to Symbian
    By berny_ in forum Symbian C++
    Replies: 2
    Last Post: 2007-09-18, 14:04
  2. Oracle Database Lite 10g Available for Symbian OS Phones
    By chirag_cel in forum News, Announcements and Job Listings
    Replies: 2
    Last Post: 2006-12-11, 07:00
  3. JSIL: Jon's Symbian Imaging Library
    By OscarBernabeu in forum Symbian C++
    Replies: 0
    Last Post: 2006-05-31, 08:49
  4. "Not found" on target 9500
    By alex_makarov in forum Symbian C++
    Replies: 10
    Last Post: 2004-12-03, 14:05
  5. c library for symbian???
    By ashwinibhagwat in forum Symbian C++
    Replies: 2
    Last Post: 2002-11-27, 12:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved