Home
last modified time | relevance | path

Searched refs:rsaPublicKey (Results 1 – 2 of 2) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DSignatureTestUtils.java109 RSAPublicKey rsaPublicKey = (RSAPublicKey) keyPair.getPublic(); in generateSignature() local
111 new RSAKeyParameters(false, rsaPublicKey.getModulus(), in generateSignature()
112 rsaPublicKey.getPublicExponent())); in generateSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java685 RSAPublicKey rsaPublicKey = Asn1BerParser.parse(subjectPublicKeyBuffer, in encodePublicKey() local
689 if (rsaPublicKey.modulus.compareTo(BigInteger.ZERO) < 0) { in encodePublicKey()
693 byte[] encodedModulus = rsaPublicKey.modulus.toByteArray(); in encodePublicKey()
698 rsaPublicKey.modulus = new BigInteger(reencodedModulus); in encodePublicKey()
702 byte[] reencodedRSAPublicKey = Asn1DerEncoder.encode(rsaPublicKey); in encodePublicKey()