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.java858 RSAPublicKey rsaPublicKey = Asn1BerParser.parse(subjectPublicKeyBuffer, in encodePublicKey() local
862 if (rsaPublicKey.modulus.compareTo(BigInteger.ZERO) < 0) { in encodePublicKey()
866 byte[] encodedModulus = rsaPublicKey.modulus.toByteArray(); in encodePublicKey()
871 rsaPublicKey.modulus = new BigInteger(reencodedModulus); in encodePublicKey()
875 byte[] reencodedRSAPublicKey = Asn1DerEncoder.encode(rsaPublicKey); in encodePublicKey()