org.mozilla.jss.tests
Class SymKeyGen
java.lang.Object
org.mozilla.jss.tests.SymKeyGen
public class SymKeyGen
- extends java.lang.Object
Most of this code is Deprecated look at JCASymKeyGen.java for sample.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)