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

1 2 3

  /libcore/ojluni/src/main/java/java/security/cert/
TrustAnchor.java 66 private final PublicKey pubKey;
130 this.pubKey = null;
154 * @param pubKey the public key of the most-trusted CA
160 * <code>pubKey</code> parameter is <code>null</code>
163 public TrustAnchor(X500Principal caPrincipal, PublicKey pubKey,
165 if ((caPrincipal == null) || (pubKey == null)) {
171 this.pubKey = pubKey;
195 * @param pubKey the public key of the most-trusted CA
204 * <code>pubKey</code> parameter is <code>null</code
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
BasicAgreement.java 25 BigInteger calculateAgreement(CipherParameters pubKey);
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/jcajce/
JcaRespID.java 21 public JcaRespID(PublicKey pubKey, DigestCalculator digCalc)
24 super(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), digCalc);
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
IdentityScope2Test.java 32 static PublicKey pubKey;
36 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
145 id.setPublicKey(pubKey);
149 id2.setPublicKey(pubKey);
164 id.setPublicKey(pubKey);
182 id.setPublicKey(pubKey);
195 id.setPublicKey(pubKey);
211 id.setPublicKey(pubKey);
213 Identity returnedId = sub.getIdentity(pubKey);
225 id.setPublicKey(pubKey);
    [all...]
Identity2Test.java 37 static PublicKey pubKey;
41 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
186 sub.setPublicKey(pubKey);
188 assertEquals("Wrong PublicKey returned", pubKey, returnedPubKey);
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLECPublicKey.java 54 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(
57 pubKey.getNativeRef(), null));
67 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(
71 pubKey.getNativeRef(), null));
98 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group,
101 return pubKey.getECPoint();
OpenSSLRSAKeyPairGenerator.java 48 PublicKey pubKey = new OpenSSLRSAPublicKey(key);
50 return new KeyPair(pubKey, privKey);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/
AuthorityKeyIdentifierStructure.java 105 PublicKey pubKey)
110 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded());
138 * @param pubKey the key to generate the hash from.
142 PublicKey pubKey)
145 super(fromKey(pubKey));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
DHBasicAgreement.java 60 CipherParameters pubKey)
62 DHPublicKeyParameters pub = (DHPublicKeyParameters)pubKey;
ECDHBasicAgreement.java 45 CipherParameters pubKey)
48 ECPoint peerPoint = ((ECPublicKeyParameters) pubKey).getQ();
  /libcore/ojluni/src/main/java/sun/security/x509/
KeyIdentifier.java 79 * @param pubKey the public key from which to construct this KeyIdentifier
82 public KeyIdentifier(PublicKey pubKey)
85 DerValue algAndKey = new DerValue(pubKey.getEncoded());
X509CertInfo.java 90 protected CertificateX509Key pubKey = null;
294 if (subject == null || pubKey == null || interval == null
304 sb.append(" Key: " + pubKey.toString() + "\n");
422 pubKey.set(suffix, val);
503 pubKey = null;
505 pubKey.delete(suffix);
569 return(pubKey);
571 return(pubKey.get(suffix));
667 pubKey = new CertificateX509Key(in);
780 pubKey.encode(tmp)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JCERSAPublicKey.java 50 org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInstance(info.parsePublicKey());
52 this.modulus = pubKey.getModulus();
53 this.publicExponent = pubKey.getPublicExponent();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 97 DHPublicKey pubKey = (DHPublicKey)key;
99 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p))
114 return new BCDHPublicKey(result, pubKey.getParams());
  /frameworks/base/keystore/tests/src/android/security/keystore/
AndroidKeyPairGeneratorTest.java 333 final PublicKey pubKey = pair.getPublic();
334 assertNotNull("The PublicKey for the KeyPair should be not null", pubKey);
335 assertEquals(keyType, pubKey.getAlgorithm());
339 ((ECPublicKey) pubKey).getParams().getCurve().getField().getFieldSize());
341 RSAPublicKey rsaPubKey = (RSAPublicKey) pubKey;
359 ((ECKey) pubKey).getParams(), ((ECKey) privKey).getParams());
365 ((RSAKey) pubKey).getModulus(), ((RSAKey) privKey).getModulus());
381 pubKey.getAlgorithm(), x509userCert.getPublicKey().getAlgorithm());
384 pubKey,
407 x509userCert.verify(pubKey);
    [all...]
  /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/jcajce/provider/asymmetric/ec/
KeyPairGeneratorSpi.java 176 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration);
177 return new KeyPair(pubKey,
178 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration));
189 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration);
191 return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration));
KeyAgreementSpi.java 102 CipherParameters pubKey;
113 // pubKey = new MQVPublicParameters(staticKey, ephemKey);
123 // pubKey = new MQVPublicParameters(staticKey, ephemKey);
137 pubKey = ECUtil.generatePublicKeyParameter((PublicKey)key);
145 result = agreement.calculateAgreement(pubKey);
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
ReverseState.java 66 PublicKey pubKey;
267 * @param pubKey the public key of the trusted CA
270 private void updateState(PublicKey pubKey, X500Principal subjectDN) {
276 this.pubKey = pubKey;
298 newKey = BasicChecker.makeInheritedParamsKey(newKey, pubKey);
302 pubKey = newKey;
CertId.java 94 byte[] pubKey = issuerKey.getEncoded();
95 DerValue val = new DerValue(pubKey);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPublicKey.java 65 org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInstance(info.parsePublicKey());
68 this.modulus = pubKey.getModulus();
69 this.publicExponent = pubKey.getPublicExponent();
  /libcore/luni/src/test/java/libcore/java/security/
SignatureTest.java     [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/
JcaSignerInfoVerifierBuilder.java 78 public SignerInformationVerifier build(PublicKey pubKey)
81 return new SignerInformationVerifier(sigAlgNameGen, sigAlgIDFinder, helper.createContentVerifierProvider(pubKey), digestProvider);
JcaSimpleSignerInfoVerifierBuilder.java 48 public SignerInformationVerifier build(PublicKey pubKey)
51 return new SignerInformationVerifier(new DefaultCMSSignatureAlgorithmNameGenerator(), new DefaultSignatureAlgorithmIdentifierFinder(), helper.createContentVerifierProvider(pubKey), helper.createDigestCalculatorProvider());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
ECUtil.java 137 java.security.interfaces.ECPublicKey pubKey = (java.security.interfaces.ECPublicKey)key;
138 ECParameterSpec s = EC5Util.convertSpec(pubKey.getParams(), false);
140 EC5Util.convertPoint(pubKey.getParams(), pubKey.getW(), false),

Completed in 795 milliseconds

1 2 3