Bouncy Castle Cryptography Library 1.64

org.bouncycastle.jce.provider.test
Class PBETest

java.lang.Object
  |
  +--org.bouncycastle.util.test.SimpleTest
        |
        +--org.bouncycastle.jce.provider.test.PBETest
All Implemented Interfaces:
Test

public class PBETest
extends SimpleTest

test out the various PBE modes, making sure the JCE implementations are compatible woth the light weight ones.


Constructor Summary
PBETest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 void testMixedKeyTypes()
           
 void testNullSalt()
           
 void testPBEHMac(java.lang.String hmacName, byte[] output)
           
 void testPBEonSecretKeyHmac(java.lang.String hmacName, byte[] output)
           
 void testPKCS12HMac(java.lang.String hmacName, byte[] output)
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBETest

public PBETest()
Method Detail

testPBEHMac

public void testPBEHMac(java.lang.String hmacName,
                        byte[] output)

testPKCS12HMac

public void testPKCS12HMac(java.lang.String hmacName,
                           byte[] output)

testPBEonSecretKeyHmac

public void testPBEonSecretKeyHmac(java.lang.String hmacName,
                                   byte[] output)

testNullSalt

public void testNullSalt()
                  throws java.lang.Exception

performTest

public void performTest()
                 throws java.lang.Exception
Overrides:
performTest in class SimpleTest

testMixedKeyTypes

public void testMixedKeyTypes()
                       throws java.lang.Exception

getName

public java.lang.String getName()
Overrides:
getName in class SimpleTest

main

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

Bouncy Castle Cryptography Library 1.64