public class X9IntegerConverter
extends java.lang.Object
Constructor | Description |
---|---|
X9IntegerConverter() |
Modifier and Type | Method | Description |
---|---|---|
int |
getByteLength(ECCurve c) |
Return the curve's field size in bytes.
|
int |
getByteLength(ECFieldElement fe) |
Return the field element's field size in bytes.
|
byte[] |
integerToBytes(java.math.BigInteger s,
int qLength) |
Convert an integer to a byte array, ensuring it is exactly qLength long.
|
public int getByteLength(ECCurve c)
c
- the curve of interest.public int getByteLength(ECFieldElement fe)
fe
- the field element of interest.public byte[] integerToBytes(java.math.BigInteger s, int qLength)
s
- the integer to be converted.qLength
- the length