~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to java/security/spec/RSAOtherPrimeInfo.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
import java.math.BigInteger;
41
41
 
42
42
/**
43
 
 * This class represents the triplet (prime, exponent, and coefficient) inside
44
 
 * RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.1. The ASN.1
45
 
 * syntax of RSA's OtherPrimeInfo is as follows:
46
 
 *
47
 
 * <pre>
48
 
 *  OtherPrimeInfo ::= SEQUENCE {
49
 
 *    prime INTEGER,
50
 
 *    exponent INTEGER,
51
 
 *    coefficient INTEGER
52
 
 *  }
53
 
 * </pre>
 
43
 * An in-memory representation of the RSA triplet (prime, exponent, and
 
44
 * coefficient) inside a PKCS#1 v2.1 <i>OtherPrimeInfo</i> structure.
54
45
 *
55
46
 * @since 1.4
56
47
 * @see RSAPrivateCrtKeySpec
69
60
  // --------------------------------------------------------------------------
70
61
 
71
62
  /**
72
 
   * Creates a new <code>RSAOtherPrimeInfo</code> given the prime,
73
 
   * primeExponent, and crtCoefficient as defined in PKCS#1.
74
 
   *
75
 
   * @param prime the prime factor of n.
76
 
   * @param primeExponent the exponent.
77
 
   * @param crtCoefficient the Chinese Remainder Theorem coefficient.
78
 
   * @throws NullPointerException if any of the parameters, i.e. prime,
79
 
   * primeExponent, crtCoefficient, is <code>null</code>.
 
63
   * Constructs a new <code>RSAOtherPrimeInfo</code> given the PKCS#1 MPIs.
 
64
   * 
 
65
   * @param prime
 
66
   *          the prime factor of n.
 
67
   * @param primeExponent
 
68
   *          the exponent.
 
69
   * @param crtCoefficient
 
70
   *          the Chinese Remainder Theorem coefficient.
 
71
   * @throws NullPointerException
 
72
   *           if any of the parameters is <code>null</code>.
80
73
   */
81
74
  public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent,
82
75
                           BigInteger crtCoefficient)
122
115
  }
123
116
 
124
117
  /**
125
 
   * Returns the prime's crtCoefficient.
 
118
   * Returns the CRT Coefficient.
126
119
   *
127
 
   * @return the crtCoefficient.
 
120
   * @return the CRT Coefficient.
128
121
   */
129
122
  public final BigInteger getCrtCoefficient()
130
123
  {