1 package org.bouncycastle.asn1;
4 import java.math.BigInteger;
6 public class DERInteger
14 bytes = BigInteger.valueOf(value).toByteArray();
20 bytes = value.toByteArray();
29 public BigInteger getValue()
31 return new BigInteger(bytes);
35 * in some cases positive values get crammed into a space,
36 * that's not quite big enough...
38 public BigInteger getPositiveValue()
40 return new BigInteger(1, bytes);
47 out.writeEncoded(INTEGER, bytes);