Lines Matching refs:key
35 * @param key to perform sanity checks on
36 * @return version number of key. Supported versions are:
37 * 1: 2048-bit key with e=3
38 * 2: 2048-bit key with e=65537
39 * @throws Exception if the key has the wrong size or public exponent
42 static int check(RSAPublicKey key) throws Exception {
43 BigInteger pubexp = key.getPublicExponent();
44 BigInteger modulus = key.getModulus();
65 * @param key to output
66 * @return a String representing this public key. If the key is a
67 * version 1 key, the string will be a C initializer; this is
68 * not true for newer key versions.
70 static String print(RSAPublicKey key) throws Exception {
71 int version = check(key);
73 BigInteger N = key.getModulus();
139 RSAPublicKey key = (RSAPublicKey) (cert.getPublicKey());
140 check(key);
141 System.out.print(print(key));