Home
last modified time | relevance | path

Searched refs:pk (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/tests/security/cert/
DTrustAnchorTest.java72 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray01() local
75 new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in testTrustAnchorStringPublicKeybyteArray01()
77 new TrustAnchor(validCaNameRfc2253, pk, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray01()
79 new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); in testTrustAnchorStringPublicKeybyteArray01()
81 new TrustAnchor(validCaNameRfc2253, pk, getEncodingNoMinMax()); in testTrustAnchorStringPublicKeybyteArray01()
94 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray02() local
96 new TrustAnchor(validCaNameRfc2253, pk, null); in testTrustAnchorStringPublicKeybyteArray02()
109 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray03() local
114 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, ncCopy); in testTrustAnchorStringPublicKeybyteArray03()
132 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in testTrustAnchorStringPublicKeybyteArray04() local
[all …]
DPKIXCertPathValidatorResultTest.java175 PublicKey pk = testPublicKey; in testGetPublicKey() local
180 pk); in testGetPublicKey()
184 assertSame(pk, vr.getPublicKey()); in testGetPublicKey()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairTest.java109 PrivateKey pk = TestKeyPair.getPrivate();
110 KeyPair kp = new KeyPair(null, pk);
111 assertSame(pk, kp.getPrivate());
129 PublicKey pk = TestKeyPair.getPublic();
130 KeyPair kp = new KeyPair(pk, null);
131 assertSame(pk, kp.getPublic());
DKSPrivateKeyEntryTest.java67 PrivateKey pk = null; in testPrivateKeyEntry01() local
69 new KeyStore.PrivateKeyEntry(pk, certs); in testPrivateKeyEntry01()
83 PrivateKey pk = new tmpPrivateKey(); in testPrivateKeyEntry02() local
85 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
91 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
DIdentityScope2Test.java45 public IdentityScopeSubclass(String name, PublicKey pk) { in IdentityScopeSubclass() argument
48 setPublicKey(pk); in IdentityScopeSubclass()
84 public Identity getIdentity(PublicKey pk) { in getIdentity() argument
88 if (current.getPublicKey() == pk) in getIdentity()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java315 PublicKey pk = reverse.getPublicKey(); in checkPair() local
316 if (!(pk instanceof DSAPublicKey) || in checkPair()
317 ((DSAPublicKey)pk).getParams() != null) { in checkPair()
318 forward.verify(pk); in checkPair()
320 pk = forward.getPublicKey(); in checkPair()
321 if (!(pk instanceof DSAPublicKey) || in checkPair()
322 ((DSAPublicKey)pk).getParams() != null) { in checkPair()
323 reverse.verify(pk); in checkPair()
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/
DCertBlocklistTest.java246 PublicKey pk = createPublicKey(TEST_CERT); in testLegitPubkeyIsntBlocklisted() local
252 assertEquals(bl.isPublicKeyBlockListed(pk), false); in testLegitPubkeyIsntBlocklisted()
257 PublicKey pk = createPublicKey(TEST_CERT); in testPubkeyIsBlocklisted() local
259 String hash = getHash(pk); in testPubkeyIsBlocklisted()
267 assertTrue(bl.isPublicKeyBlockListed(pk)); in testPubkeyIsBlocklisted()
404 PublicKey pk = createPublicKey(TURKTRUST_1); in testTurkTrustIntermediate1PubkeyBlocklist() local
410 assertEquals(bl.isPublicKeyBlockListed(pk), true); in testTurkTrustIntermediate1PubkeyBlocklist()
415 PublicKey pk = createPublicKey(TURKTRUST_2); in testTurkTrustIntermediate2PubkeyBlocklist() local
419 assertEquals(bl.isPublicKeyBlockListed(pk), true); in testTurkTrustIntermediate2PubkeyBlocklist()
424 PublicKey pk = createPublicKey(ANSSI); in testANSSIIntermediatePubkeyBlocklist() local
[all …]
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java218 PublicKey pk = new PublicKeyStub("aaa", "fff", new byte[]{1,2,3,4,5}); in testIdentityEquals() local
220 i.setPublicKey(pk); in testIdentityEquals()
228 new IdentityStub(name, pk), Boolean.TRUE in testIdentityEquals()
235 i2.setPublicKey(pk); in testIdentityEquals()
320 PublicKey pk = new PublicKeyStub("kkk", "Identity.testGetPublicKey", null); in testGetPublicKey() local
321 i.setPublicKey(pk); in testGetPublicKey()
322 assertSame(pk, i.getPublicKey()); in testGetPublicKey()
/libcore/luni/src/test/java/tests/java/sql/
DStressTest.java177 int pk = 1; in testInsertOfManyRowsUsingOneThread() local
183 insertNewRecord(c, pk++); in testInsertOfManyRowsUsingOneThread()
331 private void insertNewRecord(Connection c, int pk) {
338 ps.setInt(1, pk);
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestKeyManager.java170 PrivateKey pk = keyManager.getPrivateKey(alias); in getPrivateKey() local
172 out.println(String.valueOf(pk)); in getPrivateKey()
173 return pk; in getPrivateKey()
/libcore/ojluni/src/main/java/java/util/
DHashMap.java1857 int ph, dir; K pk; in find() local
1863 else if ((pk = p.key) == k || (k != null && k.equals(pk))) in find()
1871 (dir = compareComparables(kc, k, pk)) != 0) in find()
1925 K pk = p.key; in treeify() local
1932 (dir = compareComparables(kc, k, pk)) == 0) in treeify()
1933 dir = tieBreakOrder(k, pk); in treeify()
1977 int dir, ph; K pk; in putTreeVal() local
1982 else if ((pk = p.key) == k || (k != null && k.equals(pk))) in putTreeVal()
1986 (dir = compareComparables(kc, k, pk)) == 0) { in putTreeVal()
1996 dir = tieBreakOrder(k, pk); in putTreeVal()
DImmutableCollections.java952 private int probe(Object pk) {
953 int idx = Math.floorMod(pk.hashCode() ^ SALT, table.length >> 1) << 1;
959 } else if (pk.equals(ek)) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java448 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); in test_initLjavax_net_ssl_ManagerFactoryParameters() local
449 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in test_initLjavax_net_ssl_ManagerFactoryParameters()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java2508 int ph = p.hash; K pk = p.key; V pv = p.val; in transfer() local
2510 ln = new Node<K,V>(ph, pk, pv, ln); in transfer()
2512 hn = new Node<K,V>(ph, pk, pv, hn); in transfer()
2745 int ph, dir; K pk; TreeNode<K,V> q; in findTreeNode() local
2751 else if ((pk = p.key) == k || (pk != null && k.equals(pk))) in findTreeNode()
2759 (dir = compareComparables(kc, k, pk)) != 0) in findTreeNode()
2828 K pk = p.key; in TreeBin() local
2835 (dir = compareComparables(kc, k, pk)) == 0) in TreeBin()
2836 dir = tieBreakOrder(k, pk); in TreeBin()
2935 int dir, ph; K pk; in putTreeVal() local
[all …]