Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo

encryption using aes with ECDH algorithm.

[ Edited ]

Hello Developers,

               I am working on an application which will encrypt and decrypt any strings,any size of length.I have found some demo apps related to AES.But they are not using ECDH key agreement.I want to use ECDH for encryption.I have searched  the document but there are not suffiecient infomration on how to use.Can anyone pls provide some link how to do aes encryption ,decryption using ECDH or sample code.

                                                                                                                                                                 Thanks

 

Developer
Posts: 216
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Re: encryption using aes with ECDH algorithm.

You can do AES encryption and decryption with the BlackBerry C API.

 

https://developer.blackberry.com/native/reference/core/com.qnx.doc.crypto.lib_ref/topic/manual/aes.h...

 

It also supports ECDH.

 

https://developer.blackberry.com/native/reference/core/com.qnx.doc.crypto.lib_ref/topic/manual/ecc_e...

 

The only example code I know is contained in this knowledge base article about adding PKCS5 padding with AES.

 

http://supportforums.blackberry.com/t5/Native-Development-Knowledge/PKCS5-Padding-In-BlackBerry-10/t...

Highlighted
Developer
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo

Re: encryption using aes with ECDH algorithm.

[ Edited ]

Thanks oliver for reply.I have seen the two links that you have specified in the answer.Buy if you look at it there just little explanation in the page.There isn't good explanation to get it off to start.I have also seen some functions but they are also compex because they neither given any sample nor how to use ECDH.It seems really confusing to me.

There is a demo https://github.com/blackberry/Cascades-Community-Samples/tree/master/AESCryptoDemo But they are not having ECDH aggrement.I want AES with ECDH aggrement encryption ,decryption.Pls help if any example of AES with ECDH.