Lines Matching defs:kp
41 private static void checkKeyLength(KeyPair kp, int len) throws Exception {
42 DSAPublicKey key = (DSAPublicKey)kp.getPublic();
53 KeyPair kp;
58 kp = kpg.generateKeyPair();
59 checkKeyLength(kp, 1024);
62 kp = kpg.generateKeyPair();
63 checkKeyLength(kp, 1024);
66 kp = kpg.generateKeyPair();
67 checkKeyLength(kp, 1024);
70 kp = kpg.generateKeyPair();
71 checkKeyLength(kp, 1024);
74 kp = kpg.generateKeyPair();
75 checkKeyLength(kp, 768);
78 kp = kpg.generateKeyPair();
79 checkKeyLength(kp, 512);