/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyPairGenerator.java | 47 PrivateKey privKey = OpenSSLRSAPrivateKey.getInstance(key); 50 return new KeyPair(pubKey, privKey);
|
OpenSSLDSAKeyPairGenerator.java | 52 final OpenSSLDSAPrivateKey privKey = new OpenSSLDSAPrivateKey(key); 55 return new KeyPair(pubKey, privKey);
|
OpenSSLRSAKeyFactory.java | 118 RSAPrivateKey privKey = 120 if (privKey instanceof RSAPrivateCrtKey) { 121 RSAPrivateCrtKey rsaKey = (RSAPrivateCrtKey) privKey;
|
OpenSSLECPrivateKey.java | 54 final BigInteger privKey = ecKeySpec.getS(); 56 privKey.toByteArray())); 66 final BigInteger privKey = ecPrivateKey.getS(); 68 privKey.toByteArray()));
|
/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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
PrivateKeyInfo.java | 25 private ASN1OctetString privKey; 65 this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER)); 86 privKey = ASN1OctetString.getInstance(e.nextElement()); 109 return ASN1Primitive.fromByteArray(privKey.getOctets()); 155 v.add(privKey);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
KeyAgreementSpi.java | 172 DHPrivateKey privKey = (DHPrivateKey)key; 187 this.p = privKey.getParams().getP(); 188 this.g = privKey.getParams().getG(); 191 this.x = this.result = privKey.getX(); 204 DHPrivateKey privKey = (DHPrivateKey)key; 206 this.p = privKey.getParams().getP(); 207 this.g = privKey.getParams().getG(); 208 this.x = this.result = privKey.getX();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
ECUtil.java | 186 java.security.interfaces.ECPrivateKey privKey = (java.security.interfaces.ECPrivateKey)key; 187 ECParameterSpec s = EC5Util.convertSpec(privKey.getParams(), false); 189 privKey.getS(),
|
BaseCipherSpi.java | 173 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 175 if (privKey != null) 177 return privKey;
|
/libcore/crypto/src/test/java/org/conscrypt/ |
SignatureTest.java | 88 PrivateKey privKey = engine.getPrivateKeyById(pem_private); 89 assertTrue(privKey instanceof RSAPrivateKey); 95 KeyPair kp = new KeyPair(pubKey, 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);
|
/external/chromium_org/net/third_party/mozilla_security_manager/ |
nsPKCS12Blob.cpp | 243 SECKEYPrivateKey* privKey = PK11_FindPrivateKeyFromCert(slot, cert, 245 if (privKey) { 247 srv = PK11_WriteRawAttribute(PK11_TypePrivKey, privKey, CKA_EXTRACTABLE, 249 SECKEY_DestroyPrivateKey(privKey); 305 isExtractable(SECKEYPrivateKey *privKey, PRBool *extractable) 310 rv=PK11_ReadRawAttribute(PK11_TypePrivKey, privKey, CKA_EXTRACTABLE, &value); 432 SECKEYPrivateKey *privKey=PK11_FindKeyByDERCert(nssCert->slot, 435 if (privKey) { 437 SECStatus rv = isExtractable(privKey, &privKeyIsExtractable); 438 SECKEY_DestroyPrivateKey(privKey); [all...] |
/frameworks/base/keystore/java/android/security/ |
AndroidKeyPairGenerator.java | 103 final PrivateKey privKey; 106 privKey = engine.getPrivateKeyById(privateKeyAlias); 134 cert = certGen.generate(privKey); 154 return new KeyPair(pubKey, privKey);
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyPairGeneratorTest.java | 247 PrivateKey privKey = kf.generatePrivate(spec); 248 assertNotNull(k.getAlgorithm() + ", provider=" + p.getName(), privKey); 255 assertECPrivateKeyEquals((ECPrivateKey) k, (ECPrivateKey) privKey); 259 Arrays.toString(privKey.getEncoded())); 356 DSAPrivateKey privKey = (DSAPrivateKey) pair.getPrivate(); 359 DSAParams actualParams = privKey.getParams();
|
/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 277 ASN1Encodable privKey = info.parsePrivateKey(); 278 if (privKey instanceof DERInteger) 280 DERInteger derD = DERInteger.getInstance(privKey); 286 org.bouncycastle.asn1.sec.ECPrivateKey ec = org.bouncycastle.asn1.sec.ECPrivateKey.getInstance(privKey);
|
KeyAgreementSpi.java | 283 ECPrivateKeyParameters privKey = (ECPrivateKeyParameters)ECUtil.generatePrivateKeyParameter((PrivateKey)key); 284 this.parameters = privKey.getParameters(); 286 agreement.init(privKey);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseWrapCipher.java | 351 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 353 if (privKey != null) 355 return privKey;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPrivateKey.java | 256 ASN1Encodable privKey = info.parsePrivateKey(); 257 if (privKey instanceof DERInteger) 259 DERInteger derD = DERInteger.getInstance(privKey); 265 ECPrivateKeyStructure ec = new ECPrivateKeyStructure((ASN1Sequence)privKey);
|
JCEStreamCipher.java | 450 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 452 if (privKey != null) 454 return privKey;
|
/external/chromium_org/net/cert/ |
nss_cert_database.cc | 297 SECKEYPrivateKey *privKey = PK11_FindKeyByAnyCert(cert->os_cert_handle(), 299 if (privKey) { 300 SECKEY_DestroyPrivateKey(privKey);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KSBuilder_ImplTest.java | 144 PrivateKey privKey = tkp.getPrivate(); 146 KeyStore.PrivateKeyEntry pKey = new KeyStore.PrivateKeyEntry(privKey,
|
/frameworks/base/keystore/tests/src/android/security/ |
AndroidKeyPairGeneratorTest.java | 496 final PrivateKey privKey = pair.getPrivate(); 497 assertNotNull("The PrivateKey for the KeyPair should be not null", privKey); 498 assertEquals(keyType, privKey.getAlgorithm());
|