demo.cipher
Class Wrapping

java.lang.Object
  |
  +--demo.cipher.Wrapping

public class Wrapping
extends Object

This example demonstrates the use of key wrapping introduced by Sun in their JCE 1.2.1 API.

The point of that API is basically to define a way to encrypt and decrypt keys instead of byte arrays. Internally this will usually we implemented simply by encoding the key and then encrypting the byte array and vice versa for decryption.

This example shows how this API can be used to easily exchange a symmetric content encryption key (e.g. Triple DES) using RSA and key wrapping. Note that key wrapping can be used to wrap public, private, and secret keys and that all symmetric ciphers and the RSA cipher support key wrapping in the IAIK JCE.

Version:
File Revision 10

Constructor Summary
Wrapping()
           
 
Method Summary
static void main(String[] arg)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wrapping

public Wrapping()
Method Detail

start

public void start()
           throws Exception

main

public static void main(String[] arg)

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