Home
last modified time | relevance | path

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

/cts/tests/security/src/android/keystore/cts/
DAsn1Utils.java155 private static int bigIntegerToInt(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToInt() argument
156 if (bigInt.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0 in bigIntegerToInt()
157 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToInt()
160 return bigInt.intValue(); in bigIntegerToInt()
163 private static long bigIntegerToLong(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToLong() argument
164 if (bigInt.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0 in bigIntegerToLong()
165 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToLong()
168 return bigInt.longValue(); in bigIntegerToLong()