HomeSort by relevance Sort by last modified time
    Searched defs:pubKey (Results 1 - 25 of 35) sorted by null

1 2

  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLRSAKeyPairGenerator.java 48 PublicKey pubKey = new OpenSSLRSAPublicKey(key);
50 return new KeyPair(pubKey, privKey);
OpenSSLDSAKeyPairGenerator.java 53 final OpenSSLDSAPublicKey pubKey = new OpenSSLDSAPublicKey(key);
55 return new KeyPair(pubKey, privKey);
OpenSSLECPublicKey.java 56 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(
59 pubKey.getContext(), null));
69 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(
72 pubKey.getContext(), null));
99 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group,
102 return pubKey.getECPoint();
  /external/dropbear/libtomcrypt/testprof/
katja_test.c 8 katja_key key, privKey, pubKey;
149 DO(katja_import(tmp, len2, &pubKey));
160 katja_free(&pubKey);
176 katja_free(&pubKey);
181 /* verify with pubKey */
184 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey));
187 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey));
190 fprintf(stderr, "katja_verify_hash (unsalted, pubkey) failed, %d, %d", stat, stat2);
192 katja_free(&pubKey);
197 /* sign a message (salted) now (use privKey to make, pubKey to verify) *
    [all...]
ecc_test.c 113 ecc_key usera, userb, pubKey, privKey;
193 DO(ecc_import(buf[0], x, &pubKey));
202 DO(ecc_encrypt_key (buf[0], 32, buf[1], &y, &yarrow_prng, find_prng ("yarrow"), find_hash ("sha256"), &pubKey));
222 DO(ecc_verify_hash (buf[1], x, buf[0], 16, &stat, &pubKey));
230 ecc_free (&pubKey);
rsa_test.c 128 rsa_key key, privKey, pubKey;
288 DO(rsa_import(tmp, len2, &pubKey));
299 rsa_free(&pubKey);
315 rsa_free(&pubKey);
320 /* verify with pubKey */
323 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey));
326 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey));
329 fprintf(stderr, "rsa_verify_hash (unsalted, pubkey) failed, %d, %d", stat, stat2);
331 rsa_free(&pubKey);
336 /* sign a message (salted) now (use privKey to make, pubKey to verify) *
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 80 DHPublicKey pubKey = (DHPublicKey)key;
82 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p))
97 return new BCDHPublicKey(result, pubKey.getParams());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPublicKey.java 49 org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInstance(info.parsePublicKey());
51 this.modulus = pubKey.getModulus();
52 this.publicExponent = pubKey.getPublicExponent();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
ECUtil.java 132 java.security.interfaces.ECPublicKey pubKey = (java.security.interfaces.ECPublicKey)key;
133 ECParameterSpec s = EC5Util.convertSpec(pubKey.getParams(), false);
135 EC5Util.convertPoint(pubKey.getParams(), pubKey.getW(), false),
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JCERSAPublicKey.java 51 RSAPublicKeyStructure pubKey = new RSAPublicKeyStructure((ASN1Sequence)info.parsePublicKey());
53 this.modulus = pubKey.getModulus();
54 this.publicExponent = pubKey.getPublicExponent();
  /libcore/crypto/src/test/java/org/conscrypt/
SignatureTest.java 93 PublicKey pubKey = kf.generatePublic(new X509EncodedKeySpec(der_public));
95 KeyPair kp = new KeyPair(pubKey, privKey);
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 53 PublicKey pubKey = keyFact.generatePublic(x509KeySpec);
57 ka.doPhase(pubKey, true);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
PublicKeyFactory.java 97 RSAPublicKey pubKey = RSAPublicKey.getInstance(keyInfo.parsePublicKey());
99 return new RSAKeyParameters(false, pubKey.getModulus(), pubKey.getPublicExponent());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
KeyPairGeneratorSpi.java 264 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration);
265 return new KeyPair(pubKey,
266 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration));
277 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration);
279 return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration));
KeyAgreementSpi.java 117 CipherParameters pubKey;
133 // pubKey = new MQVPublicParameters(staticKey, ephemKey);
146 pubKey = ECUtil.generatePublicKeyParameter((PublicKey)key);
151 result = agreement.calculateAgreement(pubKey);
  /frameworks/base/keystore/java/android/security/
AndroidKeyPairGenerator.java 113 final PublicKey pubKey;
116 pubKey = keyFact.generatePublic(new X509EncodedKeySpec(pubKeyBytes));
124 certGen.setPublicKey(pubKey);
154 return new KeyPair(pubKey, privKey);
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
Identity2Test.java 37 static PublicKey pubKey;
40 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
185 sub.setPublicKey(pubKey);
187 assertEquals("Wrong PublicKey returned", pubKey, returnedPubKey);
IdentityScope2Test.java 32 static PublicKey pubKey;
35 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
144 id.setPublicKey(pubKey);
148 id2.setPublicKey(pubKey);
163 id.setPublicKey(pubKey);
181 id.setPublicKey(pubKey);
194 id.setPublicKey(pubKey);
210 id.setPublicKey(pubKey);
212 Identity returnedId = sub.getIdentity(pubKey);
224 id.setPublicKey(pubKey);
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/
SubjectPublicKeyInfoTest.java 69 PublicKey pubKey = spki.getPublicKey();
70 assertNotNull(pubKey);
71 assertTrue(pubKey instanceof RSAPublicKey);
77 PublicKey pubKey = spki.getPublicKey();
78 assertNotNull(pubKey);
79 assertEquals(X509PublicKey.class, pubKey.getClass());
89 PublicKey pubKey = spki.getPublicKey();
90 assertNotNull(pubKey);
91 assertEquals(MyTestPublicKey.class, pubKey.getClass());
92 byte[] encoded = pubKey.getEncoded()
    [all...]
  /frameworks/base/keystore/tests/src/android/security/
AndroidKeyPairGeneratorTest.java 468 final PublicKey pubKey = pair.getPublic();
469 assertNotNull("The PublicKey for the KeyPair should be not null", pubKey);
470 assertEquals(keyType, pubKey.getAlgorithm());
473 DSAPublicKey dsaPubKey = (DSAPublicKey) pubKey;
484 ((ECPublicKey) pubKey).getParams().getCurve().getField().getFieldSize());
486 RSAPublicKey rsaPubKey = (RSAPublicKey) pubKey;
512 pubKey, x509userCert.getPublicKey());
529 x509userCert.verify(pubKey);
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyPairGeneratorTest.java 406 final PublicKey pubKey = pair.getPublic();
407 assertNotNull("The PublicKey for the KeyPair should be not null", pubKey);
408 assertEquals(keyType, pubKey.getAlgorithm());
409 assertEquals("Public keys should be in X.509 format", "X.509", pubKey.getFormat());
410 assertNotNull("Public keys should be encodable", pubKey.getEncoded());
413 DSAPublicKey dsaPubKey = (DSAPublicKey) pubKey;
424 ((ECPublicKey) pubKey).getParams().getCurve().getField().getFieldSize());
426 RSAPublicKey rsaPubKey = (RSAPublicKey) pubKey;
454 pubKey, x509userCert.getPublicKey());
471 x509userCert.verify(pubKey);
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DSAKeyFactoryImplTest.java 307 DSAPublicKey pubKey;
318 pubKey = new DSAPublicKey () {
329 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class);
331 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks);
348 DSAPublicKey pubKey;
360 pubKey = new DSAPublicKey () {
371 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class);
372 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks);
374 String alg = pubKey.getAlgorithm();
667 DSAPublicKey pubKey = new DSAPublicKey ()
    [all...]
  /external/chromium_org/net/third_party/nss/ssl/
ssl3ecc.c 57 ss->serverCerts[type].serverKeyPair->pubKey : NULL)
287 SECKEYPublicKey *pubKey = NULL; /* Ephemeral ECDH key */
303 &pubKey, ss->pkcs11PinArg);
304 if (!privKey || !pubKey) {
310 pubKey->u.ec.publicValue.data,
311 pubKey->u.ec.publicValue.len));
345 pubKey->u.ec.publicValue.len + 1);
351 pubKey->u.ec.publicValue.data,
352 pubKey->u.ec.publicValue.len, 1);
353 SECKEY_DestroyPublicKey(pubKey);
    [all...]
sslsecur.c 761 sc->serverKeyBits = SECKEY_PublicKeyStrengthInBits(keyPair->pubKey);
829 SECKEYPublicKey *pubKey = NULL;
859 pubKey = CERT_ExtractPublicKey(cert);
860 if (!pubKey)
891 keyPair = ssl3_NewKeyPair(keyCopy, pubKey);
896 pubKey = NULL; /* adopted by serverKeyPair */
914 if (pubKey) {
915 SECKEY_DestroyPublicKey(pubKey);
916 pubKey = NULL;
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
KeyPairGeneratorTest.java 264 PublicKey pubKey = kf.generatePublic(spec);
265 assertNotNull(pubKey);
266 assertTrue(Arrays.equals(encoded, pubKey.getEncoded()));
357 DSAPublicKey pubKey = (DSAPublicKey) pair.getPublic();
369 actualParams = pubKey.getParams();

Completed in 1056 milliseconds

1 2