HomeSort by relevance Sort by last modified time
    Searched refs:privKey (Results 1 - 16 of 16) sorted by null

  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JCEDHKeyAgreement.java 173 DHPrivateKey privKey = (DHPrivateKey)key;
190 this.p = privKey.getParams().getP();
191 this.g = privKey.getParams().getG();
194 this.x = this.result = privKey.getX();
207 DHPrivateKey privKey = (DHPrivateKey)key;
210 this.p = privKey.getParams().getP();
211 this.g = privKey.getParams().getG();
212 this.x = this.result = privKey.getX();
WrapCipherSpi.java 362 PrivateKey privKey;
374 // privKey = new JCEECPrivateKey(in);
378 // privKey = new JDKGOST3410PrivateKey(in);
386 privKey = new JDKDSAPrivateKey(in);
390 privKey = new JCEDHPrivateKey(in);
394 privKey = new JCEDHPrivateKey(in);
398 privKey = new JCERSAPrivateCrtKey(in);
406 return privKey;
JDKPKCS12KeyStore.java 765 PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wrongPKCS12Zero);
770 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey;
807 keys.put(alias, privKey);
822 keys.put(name, privKey);
832 keys.put("unmarked", privKey);
864 PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wrongPKCS12Zero);
869 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey;
904 keys.put(alias, privKey);
916 keys.put(name, privKey);
926 PrivateKey privKey = JDKKeyFactory.createPrivateKeyFromPrivateKeyInfo(pIn)
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/pkcs/
PrivateKeyInfo.java 24 private DERObject privKey;
62 this.privKey = privateKey;
84 privKey = aIn.readObject();
104 return privKey;
135 v.add(new DEROctetString(privKey));
  /external/dropbear/libtomcrypt/testprof/
katja_test.c 8 katja_key key, privKey, pubKey;
146 DO(katja_import(tmp, len2, &privKey));
161 katja_free(&privKey);
165 /* verify with privKey */
168 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &privKey));
171 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &privKey));
174 fprintf(stderr, "katja_verify_hash (unsalted, privKey) failed, %d, %d", stat, stat2);
177 katja_free(&privKey);
193 katja_free(&privKey);
197 /* sign a message (salted) now (use privKey to make, pubKey to verify) *
    [all...]
ecc_test.c 113 ecc_key usera, userb, pubKey, privKey;
196 DO(ecc_import(buf[0], x, &privKey));
205 DO(ecc_decrypt_key (buf[1], y, buf[0], &x, &privKey));
221 DO(ecc_sign_hash (buf[0], 16, buf[1], &x, &yarrow_prng, find_prng ("yarrow"), &privKey));
224 DO(ecc_verify_hash (buf[1], x, buf[0], 16, &stat2, &privKey));
231 ecc_free (&privKey);
rsa_test.c 128 rsa_key key, privKey, pubKey;
285 DO(rsa_import(tmp, len2, &privKey));
300 rsa_free(&privKey);
304 /* verify with privKey */
307 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &privKey));
310 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &privKey));
313 fprintf(stderr, "rsa_verify_hash (unsalted, privKey) failed, %d, %d", stat, stat2);
316 rsa_free(&privKey);
332 rsa_free(&privKey);
336 /* sign a message (salted) now (use privKey to make, pubKey to verify) *
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java 82 private static PrivateKey privKey = null;
98 privKey = tkp.getPrivate();
427 kAgs[i].init(privKey);
430 kAgs[i].init(privKey);
434 kAgs[i].init(privKey);
466 DHParameterSpec dhPs = ((DHPrivateKey) privKey).getParams();
478 kAgs[i].init(privKey);
481 kAgs[i].doPhase(privKey, false);
487 kAgs[i].doPhase(privKey, true);
492 kAgs[i].init(privKey, dhPs)
    [all...]
  /external/chromium/net/third_party/nss/ssl/
ssl3ecc.c 306 SECKEYPrivateKey *privKey = NULL; /* Ephemeral ECDH key */
319 privKey = SECKEY_CreateECPrivateKey(&svrPubKey->u.ec.DEREncodedParams,
321 if (!privKey || !pubKey) {
334 pms = PK11_PubDeriveWithKDF(privKey, svrPubKey, PR_FALSE, NULL, NULL,
345 SECKEY_DestroyPrivateKey(privKey);
346 privKey = NULL;
376 if(privKey) SECKEY_DestroyPrivateKey(privKey);
533 SECKEYPrivateKey * privKey = NULL;
547 privKey = SECKEY_CreateECPrivateKey(&ecParams, &pubKey, NULL);
    [all...]
ssl.h 534 SECKEYPrivateKey *privKey,
sslimpl.h 360 #define SERVERKEY serverKeyPair->privKey
840 SECKEYPrivateKey * privKey;
    [all...]
ssl3con.c     [all...]
  /external/chromium/net/third_party/nss/ssl/bodge/
blapi.h 113 DSAPrivateKey ** privKey);
136 DSAPrivateKey **privKey);
154 ** DHPrivateKey struct. Params is input, privKey are output.
158 DHPrivateKey ** privKey);
201 ** in a single ECPrivateKey struct. Params is input, privKey are
205 ECPrivateKey ** privKey);
208 ECPrivateKey ** privKey,
    [all...]
loader.h 66 DSAPrivateKey ** privKey);
78 DSAPrivateKey **privKey);
88 DHPrivateKey ** privKey);
342 ECPrivateKey ** privKey);
345 ECPrivateKey ** privKey,
loader.c 256 DSA_NewKey(const PQGParams * params, DSAPrivateKey ** privKey)
260 return (vector->p_DSA_NewKey)(params, privKey);
282 DSAPrivateKey **privKey)
286 return (vector->p_DSA_NewKeyFromSeed)(params, seed, privKey);
307 DH_NewKey(DHParams * params, DHPrivateKey ** privKey)
311 return (vector->p_DH_NewKey)( params, privKey);
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
ServerHandshakeImpl.java 59 private PrivateKey privKey;
210 c.init(Cipher.DECRYPT_MODE, privKey);
262 agreement.init(privKey);
499 privKey = km.getPrivateKey(alias);
563 ds.init(privKey);
566 privKey = kp.getPrivate();
603 privKey = kp.getPrivate(); // use emphemeral key for key exchange

Completed in 1467 milliseconds