Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 10 of 10) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java179 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock() local
181 byte[] encodedPublicKey = encodePublicKey(publicKey); in generateSignerBlock()
214 signer.publicKey = encodedPublicKey; in generateSignerBlock()
228 byte[] publicKey = encodeAsLengthPrefixedElement(signer.publicKey); in encodeSigner()
243 + publicKey.length; in encodeSigner()
251 result.put(publicKey); in encodeSigner()
312 public byte[] publicKey; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer
DV3SigningCertificateLineage.java128 PublicKey publicKey = lastCert.getPublicKey(); in readSigningCertificateLineage() local
130 sig.initVerify(publicKey); in readSigningCertificateLineage()
DV3SchemeVerifier.java351 PublicKey publicKey; in parseSigner() local
353 publicKey = in parseSigner()
362 sig.initVerify(publicKey); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java194 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock() local
196 byte[] encodedPublicKey = encodePublicKey(publicKey); in generateSignerBlock()
238 signer.publicKey = encodedPublicKey; in generateSignerBlock()
254 signer.publicKey, in generateSignerBlock()
283 public byte[] publicKey; field in V2SchemeSigner.V2SignatureSchemeBlock.Signer
DV2SchemeVerifier.java303 PublicKey publicKey; in parseSigner() local
305 publicKey = in parseSigner()
314 sig.initVerify(publicKey); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java305 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in signManifest() local
308 + publicKey.getAlgorithm().toUpperCase(Locale.US); in signManifest()
324 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in getOutputEntryNames() local
327 + publicKey.getAlgorithm().toUpperCase(Locale.US); in getOutputEntryNames()
505 PublicKey publicKey = signingCert.getPublicKey(); in generateSignatureBlock() local
508 getSignerInfoSignatureAlgorithm(publicKey, digestAlgorithm); in generateSignatureBlock()
527 signature.initVerify(publicKey); in generateSignatureBlock()
614 PublicKey publicKey, DigestAlgorithm digestAlgorithm) throws InvalidKeyException { in getSignerInfoSignatureAlgorithm() argument
615 String keyAlgorithm = publicKey.getAlgorithm(); in getSignerInfoSignatureAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java537 public static byte[] encodePublicKey(PublicKey publicKey) in encodePublicKey() argument
540 if ("X.509".equals(publicKey.getFormat())) { in encodePublicKey()
541 encodedPublicKey = publicKey.getEncoded(); in encodePublicKey()
546 KeyFactory.getInstance(publicKey.getAlgorithm()) in encodePublicKey()
547 .getKeySpec(publicKey, X509EncodedKeySpec.class) in encodePublicKey()
551 "Failed to obtain X.509 encoded form of public key " + publicKey in encodePublicKey()
552 + " of class " + publicKey.getClass().getName(), in encodePublicKey()
558 "Failed to obtain X.509 encoded form of public key " + publicKey in encodePublicKey()
559 + " of class " + publicKey.getClass().getName()); in encodePublicKey()
901 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignaturesOverData() local
[all …]
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java478 PublicKey publicKey = signerCert.getPublicKey(); in verify() local
481 + publicKey.getAlgorithm()); in verify()
483 if (publicKey instanceof RSAKey) { in verify()
484 keySize = ((RSAKey) publicKey).getModulus().bitLength(); in verify()
485 } else if (publicKey instanceof ECKey) { in verify()
486 keySize = ((ECKey) publicKey).getParams() in verify()
488 } else if (publicKey instanceof DSAKey) { in verify()
491 DSAParams dsaParams = ((DSAKey) publicKey).getParams(); in verify()
500 byte[] encodedKey = publicKey.getEncoded(); in verify()
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java184 PublicKey publicKey = in testV1OneSignerSHA1withDSAAcceptedWithKeysTooLongForDigest() local
188 s.initVerify(publicKey); in testV1OneSignerSHA1withDSAAcceptedWithKeysTooLongForDigest()
218 PublicKey publicKey = in testV1OneSignerSHA224withDSAAcceptedWithKeysTooLongForDigest() local
222 s.initVerify(publicKey); in testV1OneSignerSHA224withDSAAcceptedWithKeysTooLongForDigest()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java279 PublicKey publicKey = parent.getCertificate().getPublicKey(); in getSignatureAlgorithm() local
283 publicKey, mMinSdkVersion, false /* padding support */); in getSignatureAlgorithm()