You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.tests
Class SymKeyGen

java.lang.Object
  extended by org.mozilla.jss.tests.SymKeyGen

public class SymKeyGen
extends java.lang.Object

Most of this code is Deprecated look at JCASymKeyGen.java for sample.


Method Summary
 boolean cipherTest(SymmetricKey key, EncryptionAlgorithm eAlg)
           
 IVParameterSpec genIV(int blockSize)
           
 SymmetricKey genPBAKey(KeyGenAlgorithm alg, SymmetricKey.Type keyType, int keyStrength)
           
 SymmetricKey genPBEKey(PBEAlgorithm alg, SymmetricKey.Type keyType, int keyStrength)
           
 byte[] genSalt(int saltSize)
           
 SymmetricKey genSymKey(KeyGenAlgorithm alg, SymmetricKey.Type keyType, int keyStrength, int keyLength)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

genPBEKey

public SymmetricKey genPBEKey(PBEAlgorithm alg,
                              SymmetricKey.Type keyType,
                              int keyStrength)
                       throws java.lang.Exception
Throws:
java.lang.Exception

genPBAKey

public SymmetricKey genPBAKey(KeyGenAlgorithm alg,
                              SymmetricKey.Type keyType,
                              int keyStrength)
                       throws java.lang.Exception
Throws:
java.lang.Exception

genSymKey

public SymmetricKey genSymKey(KeyGenAlgorithm alg,
                              SymmetricKey.Type keyType,
                              int keyStrength,
                              int keyLength)
                       throws java.lang.Exception
Throws:
java.lang.Exception

cipherTest

public boolean cipherTest(SymmetricKey key,
                          EncryptionAlgorithm eAlg)
                   throws java.lang.Exception
Throws:
java.lang.Exception

genIV

public IVParameterSpec genIV(int blockSize)
                      throws java.lang.Exception
Throws:
java.lang.Exception

genSalt

public byte[] genSalt(int saltSize)
               throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)