use of java.security.spec.RSAMultiPrimePrivateCrtKeySpec in project robovm by robovm.
the class RSAMultiPrimePrivateCrtKeySpecTest method testGetPrimeExponentQ.
/**
* Test for <code>getPrimeExponentQ()</code> method<br>
* Assertion: returns prime exponent Q
*/
public final void testGetPrimeExponentQ() {
RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, opi);
assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentQ()));
}
use of java.security.spec.RSAMultiPrimePrivateCrtKeySpec in project robovm by robovm.
the class RSAMultiPrimePrivateCrtKeySpecTest method testGetModulus.
//
// Tests for inherited methods
//
/**
* Test for <code>getModulus()</code> method<br>
* Assertion: returns modulus
*/
public final void testGetModulus() {
RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, opi);
assertTrue(BigInteger.ONE.equals(ks.getModulus()));
}
use of java.security.spec.RSAMultiPrimePrivateCrtKeySpec in project robovm by robovm.
the class RSAMultiPrimePrivateCrtKeySpecTest method testGetCrtCoefficient.
/**
* Test for <code>getCrtCoefficient()</code> method<br>
* Assertion: returns crt coefficient
*/
public final void testGetCrtCoefficient() {
RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, opi);
assertTrue(BigInteger.ONE.equals(ks.getCrtCoefficient()));
}
Aggregations