Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 24th, 2008, 09:26 PM
Registered User
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Implementation of ECIES for Hybrid Encryption

Dear Sir,

Thank you for your work on Beginning Cryptography with Java. It has been very beneficial for my research work.

Part of my work involves implementing a Hybrid Cryptosystem, where symmetric keys are used to encrypt data which are then encrypted using asymmetric encryption. I am planning to use ECC + AES to accomplish this task.

I am able to implement data encapsulation using AES; however I am not able to figure out how I can use ECC for encrypting AES keys.

Can ECIES be used for this task?

If so, can you please provide me some useful information on ECIES and how one can implement it in java. Any sample code or links?

Also, I was able to find source code for ECIESTest.java from bouncycastle’s website but was not able to follow the code completely.

Following are my queries regarding ECIESTest.java,

What is the purpose of IEKeySpec and IESParameterSpec objects?

Why does IEKeySpec take private and public keys as it parameters?
Quote:
IEKeySpec c1Key = new IEKeySpec(aPriv, bPub);
Kindly provide your assistance regarding the above queries,

Thanks in advance,

Regards,
Harkeerat
 
Old January 4th, 2009, 06:38 PM
Registered User
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any ideas?
 
Old March 2nd, 2009, 04:45 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you try to use ECC with AES, you better use ECDH. I wrote a code that implement them. See it here:
http://www.amrishodiq.co.cc/elliptic...ion-with-java/. Hope it'll helps.
 
Old June 11th, 2009, 07:05 PM
Registered User
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by amrishodiq View Post
If you try to use ECC with AES, you better use ECDH. I wrote a code that implement them. See it here:
http://www.amrishodiq.co.cc/elliptic...ion-with-java/. Hope it'll helps.
Thank you amrishodiq for your post. I went through your link earlier when it was online. However, part of my work does not require the use of ECDH.

I was able to accomplish hybrid cryptography using ECIES and AES through another provider called FlexiProvider.

They provide very detailed examples at their website:

http://www.flexiprovider.de/examples/ExampleECIES.html

For those wanting to accomplish the same task, the above mentioned site can be very useful.

Regards,
Harkeerat
 
Old June 11th, 2009, 08:20 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Both the BC lighweight APIs and the BC provider support IES for EC and Diffie-Hellman.

You can find examples of usage in source distribution by looking at the test classes.

Regards,

David
 
Old March 11th, 2011, 10:54 AM
Registered User
 
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by harkeerat View Post
Thank you amrishodiq for your post. I went through your link earlier when it was online. However, part of my work does not require the use of ECDH.

I was able to accomplish hybrid cryptography using ECIES and AES through another provider called FlexiProvider.

They provide very detailed examples at their website:

http://www.flexiprovider.de/examples/ExampleECIES.html

For those wanting to accomplish the same task, the above mentioned site can be very useful.

Regards,
Harkeerat
hi harkeerat, i also tried to use the same code for ECIES from Flexi provider but i am encountering some sort of internal error that i am not able to figure it out. i downloaded all the jar files and packages and also pasted in java/.../ext. Can u tell me how to implement it correctly.
 
Old March 11th, 2011, 12:59 PM
Registered User
 
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Implementing ECIES

Hi everyone,
Can anyone please tell me how i implement ECIES in java. Does any source code available for it. I tried implementing using FlexiProvider but was no luck.
Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
callback implementation aranjan ASP.NET 2.0 Basics 1 August 20th, 2007 09:46 PM
jms implementation yanis97 J2EE 0 August 31st, 2006 04:29 AM
pagination implementation vivekkumar_23 Struts 1 July 12th, 2006 05:52 AM
IComparer implementation Bob Bedell C# 1 February 6th, 2006 02:28 AM
c# implementation help cshanmuganathan ASP.NET 1.0 and 1.1 Basics 1 May 28th, 2005 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.