Lines Matching refs:key
36 * @param key to perform sanity checks on
37 * @throws Exception if the key has the wrong size or public exponent
39 static void check(RSAPublicKey key) throws Exception {
40 BigInteger pubexp = key.getPublicExponent();
41 BigInteger modulus = key.getModulus();
53 * @param key to output
54 * @return a C initializer representing this public key.
56 static String print(RSAPublicKey key) throws Exception {
57 check(key);
59 BigInteger N = key.getModulus();
119 RSAPublicKey key = (RSAPublicKey) (cert.getPublicKey());
120 check(key);
121 System.out.print(print(key));