/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/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
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...] |
SignerInformationStore.java | 21 * @param signerInfo the signer information to contain. 37 * @param signerInfos a collection signer information objects to contain. 46 SignerInformation signer = (SignerInformation)it.next(); local 47 SignerId sid = signer.getSID(); 56 list.add(signer); 66 * @param selector to identify a signer 100 * @param selector a signer id to select against.
|
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();
|
CMSSignedData.java | 34 * matches the given signer... 44 * SignerInformation signer = (SignerInformation)it.next(); 45 * Collection certCollection = certStore.getMatches(signer.getSID()); 50 * if (signer.verify(new JcaSimpleSignerInfoVerifierBuilder().setProvider("BC").build(cert))) 369 // SignerInformation signer = (SignerInformation)it.next(); 373 // SignerInformationVerifier verifier = verifierProvider.get(signer.getSID()); 375 // if (!signer.verify(verifier)) 382 // Collection counterSigners = signer.getCounterSignatures().getSigners(); 429 * attributes associated with a signer, or perhaps delete one. 432 * @param signerInformationStore the new signer information store to use 458 SignerInformation signer = (SignerInformation)it.next(); local [all...] |
/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]);
|
/frameworks/base/media/lib/signer/ |
Android.mk | 18 # the mediadrm signer library 22 LOCAL_MODULE:= com.android.mediadrm.signer 32 # ==== com.android.mediadrm.signer.xml lib def ======================== 35 LOCAL_MODULE := com.android.mediadrm.signer.xml
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ |
CertUtils.java | 38 static X509CertificateHolder generateFullCert(ContentSigner signer, TBSCertificate tbsCert) 42 return new X509CertificateHolder(generateStructure(tbsCert, signer.getAlgorithmIdentifier(), generateSig(signer, tbsCert))); 50 static X509AttributeCertificateHolder generateFullAttrCert(ContentSigner signer, AttributeCertificateInfo attrInfo) 54 return new X509AttributeCertificateHolder(generateAttrStructure(attrInfo, signer.getAlgorithmIdentifier(), generateSig(signer, attrInfo))); 62 static X509CRLHolder generateFullCRL(ContentSigner signer, TBSCertList tbsCertList) 66 return new X509CRLHolder(generateCRLStructure(tbsCertList, signer.getAlgorithmIdentifier(), generateSig(signer, tbsCertList))); 74 private static byte[] generateSig(ContentSigner signer, ASN1Encodable tbsObj [all...] |
/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...] |
/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/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-trace/trace-viewer/third_party/Paste/paste/auth/ |
cookie.py | 238 ``signer`` 240 This is the signer object used to create the actual cookie 255 signer=None, secret=None, timeout=None, maxlen=None): 256 if not signer: 257 signer = self.signer_class(secret, timeout, maxlen) 258 self.signer = signer 269 content = self.signer.auth(jar[self.cookie_name].value) 307 content = self.signer.sign(content) 325 # signer cannot be se [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
JarUtils.java | 231 private static X509Certificate[] createChain(X509Certificate signer, 233 Principal issuer = signer.getIssuerDN(); 235 // Signer is self-signed 236 if (signer.getSubjectDN().equals(issuer)) { 237 return new X509Certificate[] { signer }; 241 chain.add(0, signer);
|
/build/target/product/ |
core_minimal.mk | 41 com.android.mediadrm.signer \ 42 com.android.mediadrm.signer.xml \
|
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 156 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) 162 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) 173 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) 185 .signer(rootCa2.getPrivateKey("RSA", "RSA")) 265 private PrivateKeyEntry signer; field in class:TestKeyStore.Builder 326 public Builder signer(PrivateKeyEntry signer) { method in class:TestKeyStore.Builder 327 this.signer = signer; 394 && signer == null && rootCa == null) [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;
|
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
MediaDrmSigner.java | 17 package com.android.mediadrm.signer;
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
X509KeyManagerTest.java | 54 .signer(ca.getPrivateKey(caKeyType, caKeyType))
|
TrustManagerFactoryTest.java | 289 .signer(intermediateCa.getPrivateKey("RSA", "RSA"))
|
/system/extras/verity/ |
Utils.java | 275 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey)); local 276 signer.initSign(privateKey); 277 signer.update(input); 278 return signer.sign();
|
/external/v8/tools/testrunner/server/ |
main.py | 220 signer = data[3] 221 if not self.IsTrusted(signer): 226 signer_pubkeyfile = self._PubkeyFilename(signer)
|
/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 638 signer = new WholeFileSignerOutputStream(out, outputStream); 639 JarOutputStream outputJar = new JarOutputStream(signer); 655 signer.notifyClosing(); 657 signer.finish(); 673 return signer; [all...] |
/external/conscrypt/src/test/java/org/conscrypt/ |
TrustedCertificateStoreTest.java | 259 .signer(certLoopCaKey1) 274 .signer(certLoopCaKey2) 286 .signer(certLoopCaKey1)
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CertificateTest.java | 326 PublicKey signer = getRsaCertificatePublicKey(); local 328 c.verify(signer); 349 c.verify(signer, p.getName()); [all...] |