Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 3rd, 2008, 01:18 PM
Registered User
 
Join Date: Jul 2008
Location: Dhaka, Dhaka, Bangladesh.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Implementing ECDH

I am facing some problem in running Basic ECDH code. I install the BC in netbeans, Java 6 platform but its giving the problem as:
"Exception in thread "main" java.security.InvalidAlgorithmParameterException: parameter object not a ECParameterSpec at org.bouncycastle.jce.provider.JDKKeyPairGenerator$ EC.initialize(JDKKeyPairGenerator.java:448)
        at ecdh.Main.main(Main.java:34)

for the line:
" keyGen.initialize(ecSpec, Utils.createFixedRandom());"

Can you help me please.

Nayeem


Reply With Quote
  #2 (permalink)  
Old August 3rd, 2008, 06:28 PM
dgh dgh is offline
Wrox Author
Points: 843, Level: 11
Points: 843, Level: 11 Points: 843, Level: 11 Points: 843, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 203
Thanks: 0
Thanked 19 Times in 19 Posts
Default

Is the class an ECParameterSpec? If it is you may have a class loader problem - try installing the provider in jre/lib/ext.

Regards,

David

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
require ECDH java code m.ganguli BOOK: Beginning Cryptography with Java 19 December 10th, 2011 10:04 PM
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 03:26 AM
About ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 10th, 2008 07:19 PM
Problem With Implementing an Interface brettk_1 General .NET 1 February 28th, 2007 10:47 AM



All times are GMT -4. The time now is 09:51 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.