/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSSignedDataGenerator.java | 129 SignerInformation signer = (SignerInformation)it.next(); local 130 digestAlgs.add(CMSSignedHelper.INSTANCE.fixAlgID(signer.getDigestAlgorithmID())); 133 signerInfos.add(signer.toASN1Structure()); 223 * @param signer the signer to be countersigned 226 public SignerInformationStore generateCounterSigners(SignerInformation signer) 229 return this.generate(new CMSProcessableByteArray(null, signer.getSignature()), false).getSignerInfos();
|
SignerInformationStore.java | 22 SignerInformation signer = (SignerInformation)it.next(); local 23 SignerId sid = signer.getSID(); 32 list.add(signer); 42 * @param selector to identify a signer 76 * @param selector a signer id to select against.
|
CMSSignedData.java | 33 * matches the given signer... 43 * SignerInformation signer = (SignerInformation)it.next(); 44 * Collection certCollection = certStore.getMatches(signer.getSID()); 49 * if (signer.verify(new JcaSimpleSignerInfoVerifierBuilder().setProvider("BC").build(cert))) 367 // SignerInformation signer = (SignerInformation)it.next(); 371 // SignerInformationVerifier verifier = verifierProvider.get(signer.getSID()); 373 // if (!signer.verify(verifier)) 380 // Collection counterSigners = signer.getCounterSignatures().getSigners(); 385 // SignerInformationVerifier counterVerifier = verifierProvider.get(signer.getSID()); 408 * attributes associated with a signer, or perhaps delete one 437 SignerInformation signer = (SignerInformation)it.next(); local [all...] |
SignerInfoGenerator.java | 33 private final ContentSigner signer; field in class:SignerInfoGenerator 43 ContentSigner signer, 48 this(signerIdentifier, signer, digesterProvider, sigEncAlgFinder, false); 53 ContentSigner signer, 60 this.signer = signer; 64 this.digester = digesterProvider.get(digAlgFinder.find(signer.getAlgorithmIdentifier())); 91 this.signer = original.signer; 100 ContentSigner signer, [all...] |
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
MediaDrmSigner.java | 17 package com.android.mediadrm.signer;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
DSABase.java | 18 protected DSA signer; field in class:DSABase 23 DSA signer, 27 this.signer = signer; 56 BigInteger[] sig = signer.generateSignature(hash); 85 return signer.verifySignature(hash, sig[0], sig[1]);
|
/external/openssl/crypto/pkcs7/ |
pk7_smime.c | 270 X509 *signer; local 321 signer = sk_X509_value (signers, k); 323 if(!X509_STORE_CTX_init(&cert_ctx, store, signer, 331 } else if(!X509_STORE_CTX_init (&cert_ctx, store, signer, NULL)) { 407 signer = sk_X509_value (signers, i); 408 j=PKCS7_signatureVerify(p7bio,p7,si, signer); 436 X509 *signer; local 467 signer = NULL; 469 if (certs) signer = X509_find_by_issuer_and_serial (certs, 471 if (!signer && !(flags & PKCS7_NOINTERN [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
DSASigner.java | 46 private DSA signer; field in class:DSASigner 51 DSA signer) 54 this.signer = signer; 81 throw new InvalidKeyException("can't recognise key type in DSA based signer"); 86 throw new InvalidKeyException("can't recognise key type in DSA based signer"); 91 signer.init(false, param); 117 signer.init(true, param); 145 BigInteger[] sig = signer.generateSignature(hash); 174 return signer.verifySignature(hash, sig[0], sig[1]) [all...] |
/external/smack/src/org/xbill/DNS/ |
SIGBase.java | 24 protected Name signer; field in class:SIGBase 32 long origttl, Date expire, Date timeSigned, int footprint, Name signer, 47 this.signer = checkName("signer", signer); 60 signer = new Name(in); 79 signer = st.getName(origin); 103 sb.append (signer); 166 return signer; 189 signer.toWire(out, null, canonical) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SignatureBenchmark.java | 83 Signature signer = Signature.getInstance(signatureAlgorithm); local 84 signer.initSign(keyPair.getPrivate()); 85 signer.update(DATA); 86 this.signature = signer.sign(); 93 Signature signer; local 96 signer = Signature.getInstance(signatureAlgorithm, "AndroidOpenSSL"); 99 signer = Signature.getInstance(signatureAlgorithm, "BC"); 104 signer.initSign(privateKey); 105 signer.update(DATA); 106 signer.sign() [all...] |
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 221 Signature signer = Signature.getInstance("SHA1withRSA"); local 222 signer.initSign(privateKey); 223 signer.update(message); 224 return signer.sign();
|
OAuthSignatureMethod.java | 209 OAuthSignatureMethod signer = newMethod(message.getSignatureMethod(), local 211 signer.setTokenSecret(accessor.tokenSecret); 212 return signer;
|
/external/openssl/crypto/ocsp/ |
ocsp_vfy.c | 78 X509 *signer, *x; local 82 ret = ocsp_find_signer(&signer, bs, certs, st, flags); 93 skey = X509_get_pubkey(signer); 109 init_res = X509_STORE_CTX_init(&ctx, st, signer, NULL); 111 init_res = X509_STORE_CTX_init(&ctx, st, signer, bs->certs); 169 X509 *signer; local 171 if ((signer = ocsp_find_signer_sk(certs, rid))) 173 *psigner = signer; 177 (signer = ocsp_find_signer_sk(bs->certs, rid))) 179 *psigner = signer; 219 X509 *signer, *sca; local 365 X509 *signer; local 435 X509 *signer; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
SignatureSpi.java | 43 SignatureSpi(Digest digest, DSA signer, DSAEncoder encoder) 45 super(digest, signer, encoder); 54 signer.init(false, param); 67 signer.init(true, new ParametersWithRandom(param, appRandom)); 71 signer.init(true, param);
|
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
multiplesigner.js | 6 * @fileoverview A multiple gnubby signer wraps the process of opening a number 26 * @param {boolean} forEnroll Whether this signer is signing for an attempted 28 * @param {function(boolean)} allCompleteCb Called when this signer completes 34 * whether this signer expects to produce more results. The boolean is a 35 * hint rather than a promise: it's possible for this signer to produce 39 * signer will not attempt any new operations, assuming the caller is no 76 * signer: SingleGnubbySigner, 84 * Closes this signer's gnubbies, if any are open. 88 this.gnubbies_[k].signer.close(); 128 * Signals this signer to rescan for gnubbies. Useful when the caller ha [all...] |
/external/openssl/apps/ |
smime.c | 101 X509 *cert = NULL, *recip = NULL, *signer = NULL; local 254 else if (!strcmp (*args, "-signer")) 258 /* If previous -signer argument add signer to list */ 296 /* If previous -inkey arument add signer to list */ 301 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); 383 /* Check to see if any final signer needs to be appended */ 386 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); 402 BIO_printf(bio_err, "No signer certificate specified\n"); 459 BIO_printf (bio_err, "-nointern don't search certificates in message for signer\n") [all...] |
cms.c | 117 X509 *cert = NULL, *recip = NULL, *signer = NULL; local 391 else if (!strcmp (*args, "-signer")) 395 /* If previous -signer argument add signer to list */ 439 /* If previous -inkey arument add signer to list */ 444 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); 545 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); 548 /* Check to see if any final signer needs to be appended */ 562 BIO_printf(bio_err, "No signer certificate specified\n"); 620 BIO_printf (bio_err, "-nointern don't search certificates in message for signer\n") [all...] |
ocsp.c | 142 X509 *signer = NULL, *rsigner = NULL; local 311 else if (!strcmp(*args, "-signer")) 590 BIO_printf (bio_err, "-signer file certificate to sign OCSP request with\n"); 612 BIO_printf (bio_err, "-verify_other file additional certificates to search for signer\n"); 614 BIO_printf (bio_err, "-no_intern don't search certificates contained in response for signer\n"); 720 signer = load_cert(bio_err, signfile, FORMAT_PEM, 721 NULL, e, "signer certificate"); 722 if (!signer) 724 BIO_printf(bio_err, "Error loading signer certificate\n"); 730 NULL, e, "signer certificates") [all...] |
/external/openssl/crypto/cms/ |
cms_smime.c | 286 X509 *signer; local 288 CMS_SignerInfo_get0_algs(si, NULL, &signer, NULL, NULL); 289 if (!X509_STORE_CTX_init(&ctx, store, signer, certs)) 323 X509 *signer; local 330 /* Attempt to find all signer certificates */ 343 CMS_SignerInfo_get0_algs(si, NULL, &signer, NULL, NULL); 344 if (signer)
|
cms_lcl.h | 141 X509 *signer; member in struct:CMS_SignerInfo_st
|
/frameworks/base/services/core/java/com/android/server/updates/ |
ConfigUpdateInstallReceiver.java | 221 Signature signer = Signature.getInstance("SHA512withRSA"); local 222 signer.initVerify(cert); 223 signer.update(content); 224 signer.update(Long.toString(version).getBytes()); 225 signer.update(requiredPrevious.getBytes()); 226 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
CertPinInstallReceiverTest.java | 162 Signature signer = Signature.getInstance("SHA512withRSA"); local 163 signer.initSign(createKey()); 164 signer.update(content.trim().getBytes()); 165 signer.update(version.trim().getBytes()); 166 signer.update(requiredHash.getBytes()); 167 String sig = new String(Base64.encode(signer.sign(), Base64.DEFAULT)); 175 Signature signer = Signature.getInstance("SHA512withRSA"); local 176 signer.initVerify(cert); 177 signer.update(content.trim().getBytes()); 178 signer.update(version.trim().getBytes()) [all...] |
/system/extras/verity/ |
Utils.java | 245 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey)); local 246 signer.initSign(privateKey); 247 signer.update(input); 248 return signer.sign();
|
/build/tools/signapk/ |
SignApk.java | 440 ContentSigner signer = new JcaContentSignerBuilder(getSignatureAlgorithm(publicKey)) local 449 .build(signer, publicKey)); 583 // write to both output streams. out is the CMSTypedData signer and tee is the file. 596 // write to both output streams. out is the CMSTypedData signer and tee is the file. 611 private WholeFileSignerOutputStream signer; field in class:SignApk.CMSSigner 634 signer = new WholeFileSignerOutputStream(out, outputStream); 635 JarOutputStream outputJar = new JarOutputStream(signer); 651 signer.notifyClosing(); 653 signer.finish(); 669 return signer; [all...] |
/external/chromium_org/chrome/browser/ |
enumerate_modules_model_win.cc | 112 // update the list in PreparePathMappings. Filename, Description/Signer, and 114 // Entries without any Description, Signer info, or Location will never be 741 // Determine the size of the signer info data. 751 // Allocate enough space to hold the signer info. 756 // Obtain the signer info. 765 // Search for the signer certificate. 1038 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); local [all...] |