Home
last modified time | relevance | path

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

/cts/tests/security/src/android/keystore/cts/
DAsn1Utils.java166 private static int bigIntegerToInt(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToInt() argument
167 if (bigInt.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0 in bigIntegerToInt()
168 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToInt()
171 return bigInt.intValue(); in bigIntegerToInt()
174 private static long bigIntegerToLong(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToLong() argument
175 if (bigInt.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0 in bigIntegerToLong()
176 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToLong()
179 return bigInt.longValue(); in bigIntegerToLong()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java189 BigInteger bigInt = new BigInteger(1, md.digest()); in computeFileHash() local
190 result = String.format("%32s", bigInt.toString(16)).replace(' ', '0'); in computeFileHash()