Code example for RSAOtherPrimeInfo

Methods: getCrtCoefficient

0
     * Test for <code>getCrtCoefficient()</code> method<br> 
     * Assertion: returns CRT coefficient value 
     */ 
    public final void testGetCrtCoefficient() { 
        RSAOtherPrimeInfo ropi = 
            new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
                                  BigInteger.valueOf(2L),
                                  BigInteger.valueOf(3L));
        assertEquals(3L, ropi.getCrtCoefficient().longValue());
    } 
 
    /** 
     * Test for <code>getPrime()</code> method<br> 
     * Assertion: returns prime value 
     */ 
    public final void testGetPrime() { 
        RSAOtherPrimeInfo ropi = 
            new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
                                  BigInteger.valueOf(2L),
                                  BigInteger.valueOf(3L));