Code example for RSAOtherPrimeInfo

0
 
/** 
 * Tests for <code>RSAMultiPrimePrivateCrtKeySpec</code> class fields and methods. 
 *  
 */ 
@TestTargetClass(RSAMultiPrimePrivateCrtKeySpec.class)
public class RSAMultiPrimePrivateCrtKeySpecTest extends TestCase {
    /** 
     * Reference array of RSAOtherPrimeInfo. DO NOT MODIFY 
     */ 
    private static final RSAOtherPrimeInfo[] opi = new RSAOtherPrimeInfo[] {
            new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
            new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
            new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE)
    }; 
     
    // Test-cases: 
 
    /** 
     * Test #1 for 
     * <code>RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,