demo
Class ESDHKEK

java.lang.Object
  |
  +--demo.ESDHKEK

public class ESDHKEK
extends Object

This demo shows how to use Epemeral-Static Diffie-Hellman key agreement algorithm (RFC 2631) for generating a shared secret key encryption key. The demo runs in static-static mode, where the sender uses a static DH key from a certificate.

Please note that this demo uses DHParameterSpec and ESDHParameterSpec, the first for representing the DH parameters p and g (used for key generation), and the latter used for initializing the ESDHKeyAgreement with the RFC 2631 OtherInfo!

Version:
File Revision 11

Constructor Summary
ESDHKEK()
          Default constructor.
 
Method Summary
static void main(String[] argv)
          The main method for a standalone application.
 boolean start()
          Starts the demo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESDHKEK

public ESDHKEK()
Default constructor.
Method Detail

start

public boolean start()
Starts the demo.
Returns:
true if everything works fine, false otherwise

main

public static void main(String[] argv)
                 throws IOException
The main method for a standalone application.

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK