Home
last modified time | relevance | path

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

/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAsn1Utils.java147 private static int bigIntegerToInt(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToInt() argument
148 if (bigInt.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0 in bigIntegerToInt()
149 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToInt()
152 return bigInt.intValue(); in bigIntegerToInt()
155 private static long bigIntegerToLong(BigInteger bigInt) throws CertificateParsingException { in bigIntegerToLong() argument
156 if (bigInt.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0 in bigIntegerToLong()
157 || bigInt.compareTo(BigInteger.ZERO) < 0) { in bigIntegerToLong()
160 return bigInt.longValue(); in bigIntegerToLong()