|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.x9.X9IntegerConverter
A class which converts integers to byte arrays, allowing padding and calculations to be done according the the filed size of the curve or field element involved.
Constructor Summary | |
X9IntegerConverter()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X9IntegerConverter()
Method Detail |
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
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |