org.bouncycastle.util

Class BigIntegers


public final class BigIntegers
extends java.lang.Object

BigInteger utilities.

Method Summary

static byte[]
asUnsignedByteArray(BigInteger value)
Return the passed in value as an unsigned byte array.

Method Details

asUnsignedByteArray

public static byte[] asUnsignedByteArray(BigInteger value)
Return the passed in value as an unsigned byte array.
Parameters:
value - value to be converted.
Returns:
a byte array without a leading zero byte if present in the signed encoding.