|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.pqc.crypto.ntru.IndexGenerator.BitString
public static class IndexGenerator.BitString
Represents a string of bits and supports appending, reading the head, and reading the tail.
| Constructor Summary | |
|---|---|
IndexGenerator.BitString()
|
|
| Method Summary | |
|---|---|
void |
appendBits(byte b)
Appends all bits in a byte to the end of the bit string. |
byte[] |
getBytes()
|
int |
getLeadingAsInt(int numBits)
Returns up to 32 bits from the beginning of the bit string. |
IndexGenerator.BitString |
getTrailing(int numBits)
Returns the last numBits bits from the end of the bit string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexGenerator.BitString()
| Method Detail |
|---|
public void appendBits(byte b)
b - a bytepublic IndexGenerator.BitString getTrailing(int numBits)
numBits bits from the end of the bit string.
numBits - number of bits
BitString of length numBitspublic int getLeadingAsInt(int numBits)
numBits - number of bits
int whose lower numBits bits are the beginning of the bit stringpublic byte[] getBytes()
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||