/openjdk7/jdk/test/java/math/BigInteger/ |
H A D | ModPow65537.java | 43 KeyPair kp = kpg.generateKeyPair(); 44 testSigning(kp); 47 kp = kpg.generateKeyPair(); 48 testSigning(kp); 51 kp = kpg.generateKeyPair(); 52 testSigning(kp); 78 private static void testSigning(KeyPair kp) throws Exception { argument 79 System.out.println(kp.getPublic()); 84 sig.initSign(kp.getPrivate()); 88 sig.initVerify(kp [all...] |
/openjdk7/jdk/test/sun/security/provider/DSA/ |
H A D | TestKeyPairGenerator.java | 41 private static void checkKeyLength(KeyPair kp, int len) throws Exception { argument 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 [all...] |
/openjdk7/jdk/test/sun/security/pkcs11/Cipher/ |
H A D | TestRSACipherWrap.java | 53 KeyPair kp = kpg.generateKeyPair(); 79 test(kp, secretKey, cipherPKCS11, cipherJce); 80 test(kp, secretKey, cipherPKCS11, cipherPKCS11); 81 test(kp, secretKey, cipherJce, cipherPKCS11); 87 private static void test(KeyPair kp, SecretKey secretKey, argument 91 wrapCipher.init(Cipher.WRAP_MODE, kp.getPublic()); 93 unwrapCipher.init(Cipher.UNWRAP_MODE, kp.getPrivate());
|
/openjdk7/jdk/test/sun/security/rsa/ |
H A D | GenKeyStore.java | 68 private static void addToKeyStore(KeyStore ks, KeyPair kp, String name) throws Exception { argument 69 PublicKey pubKey = kp.getPublic(); 70 PrivateKey privKey = kp.getPrivate(); 79 KeyPair kp = kpg.generateKeyPair(); 80 addToKeyStore(ks, kp, alias);
|
/openjdk7/jdk/test/sun/security/pkcs11/rsa/ |
H A D | GenKeyStore.java | 68 private static void addToKeyStore(KeyStore ks, KeyPair kp, String name) throws Exception { argument 69 PublicKey pubKey = kp.getPublic(); 70 PrivateKey privKey = kp.getPrivate(); 79 KeyPair kp = kpg.generateKeyPair(); 80 addToKeyStore(ks, kp, alias);
|
/openjdk7/jdk/test/com/sun/crypto/provider/KeyAgreement/ |
H A D | TestExponentSize.java | 82 KeyPair kp; 86 kp = kpg.generateKeyPair(); 87 checkKeyPair(kp, Sizes.ten24, Sizes.five12); 89 DHPublicKey publicKey = (DHPublicKey)kp.getPublic(); 94 kp = kpg.generateKeyPair(); 95 checkKeyPair(kp, Sizes.ten24, Sizes.five12); 98 kp = kpg.generateKeyPair(); 99 checkKeyPair(kp, Sizes.ten24, Sizes.ten24); 102 kp = kpg.generateKeyPair(); 103 checkKeyPair(kp, Size 120 checkKeyPair(KeyPair kp, Sizes modulusSize, Sizes exponentSize) argument [all...] |
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | arrayKlass.hpp | 91 Klass* kp = k->klass_part(); local 92 assert(kp->null_vtbl() || kp->oop_is_array(), "cast to arrayKlass"); 93 return (arrayKlass*) kp;
|
H A D | instanceKlass.hpp | 772 Klass* kp = k->klass_part(); local 773 assert(kp->null_vtbl() || kp->oop_is_instance_slow(), "cast to instanceKlass"); 774 return (instanceKlass*) kp;
|
/openjdk7/jdk/test/com/oracle/security/ucrypto/ |
H A D | TestRSA.java | 204 private static KeyPair kp[] = null; field in class:TestRSA 220 kp = new KeyPair[keyLens.length]; 228 private static void testCipher(KeyPair kp, int inputSizeInBytes, argument 249 testEncryption(c1, c2, kp, data); 279 if (kp[h] == null) { 280 kp[h] = genRSAKey(keyLens[h]); 285 testEncryption(c1, c2, kp[h], data); 290 private static void testEncryption(Cipher c1, Cipher c2, KeyPair kp, byte[] data) argument 296 c1.init(Cipher.ENCRYPT_MODE, kp.getPublic()); 298 c2.init(Cipher.DECRYPT_MODE, kp 332 testSignature(KeyPair kp, boolean checkInterop, Provider prov) argument 385 testSigning(Signature sig1, Signature sig2, KeyPair kp, byte[] data) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/security/jgss/krb5/ |
H A D | Krb5Util.java | 216 private KerberosPrincipal kp; field in class:Krb5Util.ServiceCreds 231 sc.kp = p; 236 if (sc.kp == null) { 242 sc.kp = keys.get(0).getPrincipal(); 243 serverPrincipal = sc.kp.getName(); 245 System.out.println(">>> ServiceCreds: no kp?" 263 return kp.getName(); 272 for (KerberosKey k: ktab.getKeys(kp)) { 286 if (Objects.equals(key.getPrincipal(), kp)) { 312 kp [all...] |
/openjdk7/jdk/src/share/native/sun/awt/libpng/ |
H A D | pngwutil.c | 1547 png_charp kp, dp; local 1593 kp = *new_key + key_len - 1; 1594 if (*kp == ' ') 1598 while (*kp == ' ') 1600 *(kp--) = '\0'; 1606 kp = *new_key; 1607 if (*kp == ' ') 1611 while (*kp == ' ') 1613 kp++; 1618 png_debug1(2, "Checking for multiple internal spaces in '%s'", kp); [all...] |