/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/ |
DHPrivateKeyTest.java | 56 DHPrivateKey pk1 = (DHPrivateKey) kp1.getPrivate(); local 59 assertTrue(pk1.getX().getClass().getCanonicalName().equals("java.math.BigInteger")); 60 assertTrue(pk1.getParams().getClass().getCanonicalName().equals("javax.crypto.spec.DHParameterSpec")); 61 assertFalse(pk1.equals(pk2)); 62 assertTrue(pk1.getX().equals(pk1.getX()));
|
DHPublicKeyTest.java | 60 DHPublicKey pk1 = (DHPublicKey) kp1.getPublic(); local 63 assertTrue(pk1.getY().getClass().getCanonicalName().equals("java.math.BigInteger")); 65 assertFalse(pk1.equals(pk2)); 66 assertTrue(pk1.getY().equals(pk1.getY()));
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
IdentityTest.java | 117 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5}); local 118 i.setPublicKey(pk1); 120 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 136 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); local 137 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 140 assertSame(pk1, i.getPublicKey()); 162 // PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); 163 // CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 187 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); local 188 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 293 PublicKeyStub pk1 = new PublicKeyStub("kkk", "Identity.testSetPublicKey4", null); local [all...] |
/libcore/luni/src/test/java/tests/java/security/ |
IdentityTest.java | 123 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5}); local 124 i.setPublicKey(pk1); 126 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 142 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); local 143 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 146 assertSame(pk1, i.getPublicKey()); 168 // PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); 169 // CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 193 PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null); local 194 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); 297 PublicKeyStub pk1 = new PublicKeyStub("kkk", "Identity.testSetPublicKey4", null); local [all...] |
/libcore/luni/src/main/java/java/security/ |
Identity.java | 108 private static boolean checkKeysEqual(PublicKey pk1, PublicKey pk2) { 112 // assert(pk1 != null); 115 String format1 = pk1.getFormat(); 123 return Arrays.equals(pk1.getEncoded(), pk2.getEncoded());
|
/external/eigen/Eigen/src/OrderingMethods/ |
Amd.h | 101 ok, nel = 0, p, p1, p2, p3, p4, pj, pk, pk1, pk2, pn, q, t; local 212 pk1 = (elenk == 0) ? p : cnz; /* do in place if elen[k] == 0 */ 213 pk2 = pk1; 253 Cp[k] = pk1; /* element k is in Ci[pk1..pk2-1] */ 254 len[k] = pk2 - pk1; 259 for(pk = pk1; pk < pk2; pk++) /* scan 1: find |Le\Lk| */ 280 for(pk = pk1; pk < pk2; pk++) /* scan2: degree update */ 344 for(pk = pk1; pk < pk2; pk++) 383 for(p = pk1, pk = pk1; pk < pk2; pk++) /* finalize Lk * [all...] |