demo
Class TestSignature

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

public class TestSignature
extends Object

This class tests the functionality of the signature algorithtms.

Version:
File Revision 24

Constructor Summary
TestSignature()
          Default constructor.
 
Method Summary
 void dsa()
          Tests the functionality of the DSA signature algorithm.
static void main(String[] arg)
          Performs a test for the implemented signature algorithms.
 void rsaPKCS1v15()
          Tests the functionality of RSA PKCS1v1.5 signature algorithms.
 void rsaPss()
          Tests the functionality of RSA PSS signature schemes.
 void rsaPssParameterParse()
          Test of PSS parameter parsing.
 void rsaPssSaltParameters()
          Test of PSS SaltLength parameters.
 void start()
          Tests the functionality of DSA and RSA based signature algorithms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSignature

public TestSignature()
Default constructor. Loads keys from the keystore.
Method Detail

rsaPKCS1v15

public void rsaPKCS1v15()
Tests the functionality of RSA PKCS1v1.5 signature algorithms.

rsaPss

public void rsaPss()
Tests the functionality of RSA PSS signature schemes.

rsaPssParameterParse

public void rsaPssParameterParse()
Test of PSS parameter parsing. This method first uses a "MD5withRSAandMGF1" Signature engine to sign some data and then inits a "RSASSA-PSS" Signature engine with the parameters from the first Signature engine to verify the signature.

rsaPssSaltParameters

public void rsaPssSaltParameters()
Test of PSS SaltLength parameters. This method first uses a "MD5withRSAandMGF1" Signature engine and inits it with RSAPssSaltParameterSpec parameters to sign some data and then inits a "RSASSA-PSS" Signature engine with the parameters from the first Signature engine to verify the signature.

dsa

public void dsa()
Tests the functionality of the DSA signature algorithm.

start

public void start()
Tests the functionality of DSA and RSA based signature algorithms.

main

public static void main(String[] arg)
Performs a test for the implemented signature algorithms.

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