Wrox Programmer Forums
|
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 16th, 2007, 08:40 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default require ECDH java code

i found the neccessary code for the ECDSA algorithm and have implemented it.I however could not implement the ECDH algorithm.I could find in the book.Can someone let me know how i am supposed to implement that?

 
Old February 17th, 2007, 06:58 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

I'm not sure I fully understand the question, but if you're looking for the basic source code supporting the algorithm you can find it in org.bouncycastle.crypto.agreement.

Regards,

David

 
Old March 8th, 2007, 12:30 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx. I got the code for ECDH. I now want to use any symmetric algorithm, say blowfish, and exchange the key used using the ECDH. that would mean I have to include the algorithm in ECDH program. how may i proceed?

 
Old March 8th, 2007, 04:00 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Traditionally the approach is to feed the value produced by ECDH into a key derivation function and then do the encryption using the resulting key. You can find some examples of the key derivation functions in the package org.bouncycastle.crypto.agreement.kdf (note: this is new for 1.36, it's already in CVS though).

Regards,

David

 
Old March 18th, 2008, 02:45 PM
Registered User
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi everybody,

I am doing a project based on watermarking. for that i have to use ECDSA algorithm to implement it to generate a digital signature for the image which i use as cover image. I have now obtained the hash values using Sha 512 of both the cover image and the text document which has the secret info to be passed. Now what crypto service provider should i use to implement ECDSA and after getting the cryptoservice provider how should i do? where will i get that crytoApI

 
Old March 18th, 2008, 04:12 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

The current edition of the Bouncy Castle provider supports SHA512withECDSA.

Regards,

David

 
Old March 19th, 2008, 07:20 AM
Registered User
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anyone post me the source code of ECDSA(either in JAVA or in C#). I need it just for a reference. I need the GUI too please.

 
Old March 19th, 2008, 03:15 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

The source for the algorithm is available in both Java and C# at http://www.bouncycastle.org

Regards,

David
 
Old March 2nd, 2009, 04:08 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by m.ganguli View Post
i found the neccessary code for the ECDSA algorithm and have implemented it.I however could not implement the ECDH algorithm.I could find in the book.Can someone let me know how i am supposed to implement that?
I write about implementation of Elliptic Curve Diffie-Hellman here: http://www.amrishodiq.co.cc/elliptic...ion-with-java/. I use Rjndael 256 as the symmetric cipher and SHA 256 as the hashing algorithm. I think this enough for you. My code require Bouncy Castle.
 
Old October 6th, 2009, 07:19 AM
Registered User
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ECDH code

Quote:
Originally Posted by m.ganguli View Post
i found the neccessary code for the ECDSA algorithm and have implemented it.I however could not implement the ECDH algorithm.I could find in the book.Can someone let me know how i am supposed to implement that?

Dear Ganguli,
I am krishna working in ECDH,I hope by this time you might have finished your coding for ECDH,can u please share that code to me and send it to my mail ([email protected]).I am very much in need of the code please help me out......
regards
krishna





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the parameter in ECDH nay_ctg BOOK: Beginning Cryptography with Java 2 March 17th, 2009 01:07 AM
Code for ECDH nay_ctg BOOK: Beginning Cryptography with Java 2 March 2nd, 2009 04:26 AM
About ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 10th, 2008 07:19 PM
Problem in Implementing ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 3rd, 2008 06:28 PM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM





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