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 August 3rd, 2008, 01:18 PM
Registered User
 
Join Date: Jul 2008
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


 
Old August 3rd, 2008, 06:28 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
require ECDH java code m.ganguli BOOK: Beginning Cryptography with Java 19 December 10th, 2011 11: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 04: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 11:47 AM





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