|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--demo.cipher.Wrapping
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.
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 |
public Wrapping()
Method Detail |
public void start() throws Exception
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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |