Re: Replacement for JCEECDHKeyAgreement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On mån, 2014-03-03 at 15:18 -0500, David Walluck wrote:
> On 03/03/2014 02:54 PM, David Juran wrote:
> > So for the curious, it seems that both the F20 and rawhide versions do
> > support ECDH. For F19, I'm still pushing it to testing, so I guess we'll
> > find out (-:
> 
> How did you test this? Note that it will compile even with a bogus
> string and would only fail when it hits this code path at runtime.

I created the attached test program. And since running it didn't throw
any exception, I concluded that it works. Or?

-- 
David Juran
Sr. Consultant
Red Hat
+46-725-345801
import java.security.Security;

import javax.crypto.Cipher;
import javax.crypto.KeyAgreement;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

class Test{
    public static void main(String[] argv) throws Exception {

	BouncyCastleProvider bc = new BouncyCastleProvider();
	Security.addProvider(bc);
	Cipher ies = Cipher.getInstance("ECIES");
	KeyAgreement ecDH = KeyAgreement.getInstance("ECDH");
    }
}
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux