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 February 28th, 2013, 12:17 AM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Elliptic Curve in Hybrid Encryption

I looked at many of the samples for Elliptic curve (EC) encryption and was unable to find any information regarding using an Elliptic curve key to wrap an AES key similar to the RSA technique. Does the BouncyCastle API support using a generated EC pair of keys to wrap an AES key which would be used to encrypt a message?

I modified the TestECIES example to generate a 384-bit key which should be large enough to wrap a 256-bit AES key so it would seem hypothetically possible.
 
Old February 28th, 2013, 01:01 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

I think you've answered your own question. EC is more like BigInteger Diffie-Hellman than RSA, so agreement techniques like IES are required to exchange symmetric keys.

As of 1.48 BC supports IES with the generation of ephemeral keys, the best place to find examples of these in use is in the test code.

Regards,

David
The Following User Says Thank You to dgh For This Useful Post:
jhwong56 (February 28th, 2013)
 
Old February 28th, 2013, 01:46 AM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the clarification Dave. It appears after testing with the ECIES example and looking at the information in your book that the ECIES code integrates the symmetric key encryption such as AES and allows one to distribute the ECIES public key to others so that they could encrypt messages to the owner and the owner can decrypt with the ECIES private key.

Since the ECDH requires coding the key agreements for generating the shared symmetric key, does the ECIES technique handles it internally?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Select boxes/radiobuttoms hybrid tardebut Javascript How-To 4 December 3rd, 2011 09:44 AM
Implementation of ECIES for Hybrid Encryption harkeerat BOOK: Beginning Cryptography with Java 6 March 11th, 2011 12:59 PM
encryption using private key is possible in Elliptic curve cryptography nivsri BOOK: Beginning Cryptography with Java 2 December 28th, 2010 08:14 AM
How to curve a tables edge? scrowler CSS Cascading Style Sheets 6 December 15th, 2004 06:16 PM





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