/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCEDHKeyAgreement.java | 174 DHPrivateKey privKey = (DHPrivateKey)key; 189 this.p = privKey.getParams().getP(); 190 this.g = privKey.getParams().getG(); 193 this.x = this.result = privKey.getX(); 206 DHPrivateKey privKey = (DHPrivateKey)key; 208 this.p = privKey.getParams().getP(); 209 this.g = privKey.getParams().getG(); 210 this.x = this.result = privKey.getX();
|
WrapCipherSpi.java | 360 PrivateKey privKey; 371 privKey = new JCEECPrivateKey(in); 376 // privKey = new JDKGOST3410PrivateKey(in); 381 privKey = new JDKDSAPrivateKey(in); 385 privKey = new JCEDHPrivateKey(in); 389 privKey = new JCEDHPrivateKey(in); 393 privKey = new JCERSAPrivateCrtKey(in); 401 return privKey;
|
JDKPKCS12KeyStore.java | 770 PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wrongPKCS12Zero); 775 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey; 812 keys.put(alias, privKey); 827 keys.put(name, privKey); 837 keys.put("unmarked", privKey); 869 PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wrongPKCS12Zero); 874 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey; 909 keys.put(alias, privKey); 921 keys.put(name, privKey); 931 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/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
KeyAgreementTest.java | 72 private static PrivateKey privKey = null; 88 privKey = tkp.getPrivate(); 322 kAgs[i].init(privKey); 325 kAgs[i].init(privKey); 329 kAgs[i].init(privKey); 348 kAgs[i].init(privKey); 350 kAgs[i].doPhase(privKey, false); 356 kAgs[i].doPhase(privKey, true); 436 kAgs[i].init(privKey, dsa); 442 kAgs[i].init(privKey, dsa, new SecureRandom()) [all...] |
/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 | 74 private static PrivateKey privKey = null; 90 privKey = tkp.getPrivate(); 324 kAgs[i].init(privKey); 327 kAgs[i].init(privKey); 331 kAgs[i].init(privKey); 348 DHParameterSpec dhPs = ((DHPrivateKey) privKey).getParams(); 360 kAgs[i].init(privKey); 363 kAgs[i].doPhase(privKey, false); 369 kAgs[i].doPhase(privKey, true); 374 kAgs[i].init(privKey, dhPs) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
KeyAgreement.java | 278 ECPrivateKeyParameters privKey = (ECPrivateKeyParameters)ECUtil.generatePrivateKeyParameter((PrivateKey)key); 279 this.parameters = privKey.getParameters(); 281 agreement.init(privKey);
|
/external/chromium/net/base/ |
cert_database_nss.cc | 255 SECKEYPrivateKey *privKey = PK11_FindKeyByAnyCert(cert->os_cert_handle(), 257 if (privKey) { 258 SECKEY_DestroyPrivateKey(privKey);
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ServerHandshakeImpl.java | 59 private PrivateKey privKey; 208 c.init(Cipher.DECRYPT_MODE, privKey); 244 agreement.init(privKey); 457 privKey = km.getPrivateKey(alias); 511 ds.init(privKey); 514 privKey = kp.getPrivate(); 551 privKey = kp.getPrivate(); // use emphemeral key for key exchange
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KeyStore_Impl1Test.java | 467 PrivateKey privKey = tkp.getPrivate(); 468 KeyStore.PrivateKeyEntry pKey = new KeyStore.PrivateKeyEntry(privKey, 511 key1 = privKey; [all...] |
KSBuilder_ImplTest.java | 144 PrivateKey privKey = tkp.getPrivate(); 146 KeyStore.PrivateKeyEntry pKey = new KeyStore.PrivateKeyEntry(privKey,
|