/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
KeyPair.h | 47 static PassRefPtr<KeyPair> create(const blink::WebCryptoKey& publicKey, const blink::WebCryptoKey& privateKey); 49 Key* publicKey() { return m_publicKey.get(); } 53 KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey);
|
/frameworks/base/core/java/android/content/pm/ |
VerifierInfo.java | 22 import java.security.PublicKey; 35 public final PublicKey publicKey; 42 * @param publicKey the public key for the signer encoded in Base64. Must 46 public VerifierInfo(String packageName, PublicKey publicKey) { 49 } else if (publicKey == null) { 50 throw new IllegalArgumentException("publicKey must not be null"); 54 this.publicKey = publicKey; [all...] |
/libcore/luni/src/main/java/java/security/ |
KeyPair.java | 27 * @see PublicKey 33 private final PublicKey publicKey; 39 * @param publicKey 44 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 46 this.publicKey = publicKey; 63 public PublicKey getPublic() { 64 return publicKey; [all...] |
Identity.java | 37 private PublicKey publicKey; 91 PublicKey certPK = certificate.getPublicKey(); 92 if (publicKey != null) { 93 if (!checkKeysEqual(publicKey, certPK)) { 97 publicKey = certPK; 108 private static boolean checkKeysEqual(PublicKey pk1, PublicKey pk2) { 186 if (publicKey == null) { 187 return (identity.publicKey == null) [all...] |
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
DigitalSignatureTest.java | 25 import java.security.PublicKey; 82 final PublicKey publicKey = keyFactory 90 public PublicKey getPublicKey() { 91 return publicKey; 105 public void verify(PublicKey key) throws CertificateException, 111 public void verify(PublicKey key, String sigProvider)
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
KeyPairTest.java | 48 PublicKeyStub publicKey = new PublicKeyStub("publicAlgorithm", 51 keyPair = new KeyPair(publicKey, privateKey); 79 assertEquals("PublicKey class", key1.getClass(), key2.getClass()); 80 assertEquals("PublicKey algorithm", key1.getAlgorithm(), key2 82 assertEquals("PublicKey format", key1.getFormat(), key2.getFormat()); 83 assertTrue("PublicKey encoded", Arrays.equals(key1.getEncoded(),
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
ObjectDigestInfo.java | 20 * publicKey (0), 39 public final static int publicKey = 0; 86 * {@link #publicKey} <code>otherObjectTypeID</code> must be given, 162 * publicKey (0),
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
DSAKeyFactoryImpl.java | 25 import java.security.PublicKey; 78 protected PublicKey engineGeneratePublic(KeySpec keySpec) 144 DSAPublicKey publicKey = (DSAPublicKey) key; 148 y = publicKey.getY(); 150 DSAParams params = publicKey.getParams(); 201 DSAPublicKey publicKey = (DSAPublicKey) key; 202 DSAParams params = publicKey.getParams(); 205 return engineGeneratePublic(new DSAPublicKeySpec(publicKey
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 23 import java.security.PublicKey; 59 PublicKey publicKey = factory.generatePublic(publicKeySpec); 60 check(new KeyPair(publicKey, privateKey));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
ECUtil.java | 5 import java.security.PublicKey; 107 PublicKey key) 150 PublicKey publicKey = BouncyCastleProvider.getPublicKey(SubjectPublicKeyInfo.getInstance(bytes)); 152 if (publicKey instanceof java.security.interfaces.ECPublicKey) 154 return ECUtil.generatePublicKeyParameter(publicKey);
|
/external/chromium_org/net/third_party/mozilla_security_manager/ |
nsKeygenHandler.cpp | 108 SECKEYPublicKey *publicKey = NULL; 143 &publicKey, 163 PK11_SetPublicKeyNickname(publicKey, label.c_str()); 172 spkInfo = SECKEY_CreateSubjectPublicKeyInfo(publicKey); 240 if (publicKey) { 243 PK11_DestroyTokenObject(publicKey->pkcs11Slot, publicKey->pkcs11ID); 245 SECKEY_DestroyPublicKey(publicKey);
|
/libcore/crypto/src/main/java/org/conscrypt/ |
TrustedCertificateIndex.java | 19 import java.security.PublicKey; 99 PublicKey publicKey; 103 publicKey = caCert.getPublicKey(); 105 publicKey = anchor.getCAPublicKey(); 107 cert.verify(publicKey); 129 PublicKey certPublicKey = cert.getPublicKey(); 131 PublicKey caPublicKey;
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
SubjectPublicKeyInfo.java | 27 import java.security.PublicKey; 58 private PublicKey publicKey; 106 * Returns the PublicKey corresponding to this SubjectPublicKeyInfo 109 public PublicKey getPublicKey() { 110 if (publicKey == null) { 116 publicKey = generateKeyForAlgorithm(keySpec, algName); 123 if (publicKey == null && !algOid.equals(algName)) { 124 publicKey = generateKeyForAlgorithm(keySpec, algOid); 132 if (publicKey == null) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 102 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); 103 KeyPair kp = new KeyPair(publicKey, privateKey);
|
KeyFactory2Test.java | 28 import java.security.PublicKey; 133 // Test for method java.security.PublicKey 151 PublicKey publicKey = fact.generatePublic(publicKeySpec); 153 .getEncoded(), publicKey.getEncoded()); 263 PublicKey publicKey = fact.generatePublic(publicKeySpec); 265 .getEncoded(), publicKey.getEncoded());
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 24 import java.security.PublicKey; 61 * of type java.security.PublicKey, String, or byte[]. In the latter two 86 final static public String PUBLIC_KEY = "RSA-SHA1.PublicKey"; 90 private PublicKey publicKey = null; 116 if (publicKeyObject instanceof PublicKey) { 117 publicKey = (PublicKey)publicKeyObject; 119 publicKey = getPublicKeyFromPem((String)publicKeyObject); 121 publicKey = getPublicKeyFromDer((byte[])publicKeyObject) [all...] |
/external/smack/src/org/xbill/DNS/ |
KEYBase.java | 6 import java.security.PublicKey; 23 protected PublicKey publicKey = null; 140 * Returns a PublicKey corresponding to the data in this key. 143 public PublicKey 145 if (publicKey != null) 146 return publicKey; 148 publicKey = DNSSEC.toPublicKey(this); 149 return publicKey;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 128 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); 129 KeyPair kp = new KeyPair(publicKey, privateKey);
|
KeyFactory2Test.java | 30 import java.security.PublicKey; 136 // Test for method java.security.PublicKey 153 PublicKey publicKey = fact.generatePublic(publicKeySpec); 159 Arrays.toString(publicKey.getEncoded())); 248 PublicKey publicKey = fact.generatePublic(publicKeySpec); 260 Arrays.toString(publicKey.getEncoded())); 355 public PublicKey engineGeneratePublic(KeySpec keySpec) {
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
SHA1withDSA_SignatureTest.java | 36 import java.security.PublicKey; 86 private static PublicKey publicKey; 90 private static PublicKey publicKey2; 94 private static PublicKey myRSAPublicKey; 119 publicKey = keys.getPublic(); 163 signs[4].initVerify(publicKey); 339 // Initially all signing Signature objects are initialized with some PublicKey 398 * The test against "initVerify(PublicKey)" methods 401 * PublicKey is null or is not DSAPublicKe [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 55 private transient DERBitString publicKey; 119 this.publicKey = key.publicKey; 153 publicKey = getPublicKeyDetails(pubKey); 194 publicKey = getPublicKeyDetails(pubKey); 289 this.publicKey = ec.getPublicKey(); 348 if (publicKey != null) 350 keyStructure = new org.bouncycastle.asn1.sec.ECPrivateKey(this.getS(), publicKey, params);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPrivateKey.java | 52 private DERBitString publicKey; 109 this.publicKey = key.publicKey; 140 publicKey = getPublicKeyDetails(pubKey); 179 publicKey = getPublicKeyDetails(pubKey); 268 this.publicKey = ec.getPublicKey(); 327 if (publicKey != null) 329 keyStructure = new ECPrivateKeyStructure(this.getS(), publicKey, params);
|
/libcore/benchmarks/src/benchmarks/regression/ |
SignatureBenchmark.java | 25 import java.security.PublicKey; 65 private PublicKey publicKey; 79 this.publicKey = keyPair.getPublic(); 123 verifier.initVerify(publicKey);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactory_ImplTest.java | 27 import java.security.PublicKey; 210 private static PublicKey publicKey; 219 publicKey = keyFactory.generatePublic(publicKeySpec); 222 publicKey = null; 226 publicKey = null; 269 if (publicKey != null) { 272 ((X509CRL) i.next()).verify(publicKey); 312 if (publicKey != null) { 314 crl.verify(publicKey); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertImpl.java | 32 import java.security.PublicKey; 86 private volatile PublicKey publicKey; 355 @Override public PublicKey getPublicKey() { 356 PublicKey result = publicKey; 358 publicKey = result = tbsCert.getSubjectPublicKeyInfo().getPublicKey(); 367 @Override public void verify(PublicKey key) 382 @Override public void verify(PublicKey key, String sigProvider)
|