Searched refs:keysize (Results 1 - 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/security/spec/
H A DRSAKeyGenParameterSpec.java44 private int keysize; field in class:RSAKeyGenParameterSpec
59 * given keysize and public-exponent value.
61 * @param keysize the modulus size (specified in number of bits)
64 public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) { argument
65 this.keysize = keysize;
70 * Returns the keysize.
72 * @return the keysize.
75 return keysize;
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyKeyPairGenerator2.java56 public void initialize(int keysize, SecureRandom random) { argument
57 if (keysize < 64) {
58 throw new InvalidParameterException("Incorrect keysize parameter");
60 keySize = keysize;
H A DMyAlgorithmParameterGeneratorSpi.java39 public void engineInit(int keysize, SecureRandom random) { argument
40 if (keysize < 0) {
41 throw new IllegalArgumentException("keysize < 0");
H A DMyKeyPairGeneratorSpi.java39 public void initialize(int keysize, SecureRandom random) { argument
40 if (keysize < 100) {
42 "Invalid keysize: less than 100");
H A DMyKeyPairGenerator1.java62 public void initialize(int keysize, SecureRandom random) { argument
63 if ((keysize < 0) || ((keysize % 100) != 0)) {
64 throw new InvalidParameterException("Incorrect keysize parameter");
69 keySize = keysize;
/libcore/ojluni/src/main/java/java/security/
H A DKeyPairGeneratorSpi.java42 * For example, the <i>Sun</i> provider uses a default modulus size (keysize)
55 * Initializes the key pair generator for a certain keysize, using
58 * @param keysize the keysize. This is an
64 * @exception InvalidParameterException if the {@code keysize} is not
67 public abstract void initialize(int keysize, SecureRandom random); argument
H A DKeyPairGenerator.java53 * <p>All key pair generators share the concepts of a keysize and a
54 * source of randomness. The keysize is interpreted differently for different
55 * algorithms (e.g., in the case of the <i>DSA</i> algorithm, the keysize
61 * {@code keysize} argument, and uses the {@code SecureRandom}
72 * <p>If the algorithm is the <i>DSA</i> algorithm, and the keysize (modulus
97 * For example, the <i>Sun</i> provider uses a default modulus size (keysize)
362 * Initializes the key pair generator for a certain keysize using
370 * @param keysize the keysize. This is an
374 * @exception InvalidParameterException if the {@code keysize} i
377 initialize(int keysize) argument
395 initialize(int keysize, SecureRandom random) argument
668 initialize(int keysize, SecureRandom random) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyGeneratorSpi.java54 protected void engineInit(int keysize, SecureRandom random) { argument
55 if (keysize <= 77) {
56 throw new IllegalArgumentException("Invalid keysize");
/libcore/ojluni/src/main/java/javax/crypto/
H A DKeyGeneratorSpi.java68 * Initializes this key generator for a certain keysize, using the given
71 * @param keysize the keysize. This is an algorithm-specific metric,
75 * @exception InvalidParameterException if the keysize is wrong or not
78 protected abstract void engineInit(int keysize, SecureRandom random); argument
H A DKeyGenerator.java53 * <p>All key generators share the concepts of a <i>keysize</i> and a
59 * <code>keysize</code> argument, and uses the SecureRandom implementation
549 * Initializes this key generator for a certain keysize.
559 * @param keysize the keysize. This is an algorithm-specific metric,
562 * @exception InvalidParameterException if the keysize is wrong or not
565 public final void init(int keysize) { argument
566 init(keysize, JceSecurity.RANDOM);
570 * Initializes this key generator for a certain keysize, using a
573 * @param keysize th
580 init(int keysize, SecureRandom random) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyGeneratorSpiTest.java59 protected void engineInit(int keysize, SecureRandom random) { argument
60 super.engineInit(keysize, random);
H A DKeyGeneratorTest.java124 int keysize = 0;
131 keyG.init(keysize, null);
145 keyG.init(keysize, null);
337 * Test for <code>init(int keysize)</code> and
338 * <code>init(int keysize, SecureRandom random)</code> methods
339 * Assertion: throws InvalidParameterException if keysize is wrong
409 * <code>init(int keysize, SecureRandom random)</code> methods
410 * <code>init(int keysize)</code> methods

Completed in 571 milliseconds