|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.crypto.eddsa.Utils
public class Utils
Basic utilities for eddsa. Not for external use, not maintained as a public API.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static int |
bit(byte[] h,
int i)
Get the i'th bit of a byte array. |
static String |
bytesToHex(byte[] raw)
Converts bytes to a hex string. |
static int |
equal(byte[] b,
byte[] c)
Constant-time byte[] comparison. |
static int |
equal(int b,
int c)
Constant-time byte comparison. |
static byte[] |
hexToBytes(String s)
Converts a hex string to bytes. |
static int |
negative(int b)
Constant-time determine if byte is negative. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static int equal(int b, int c)
public static int equal(byte[] b, byte[] c)
public static int negative(int b)
b
- the byte to check.
public static int bit(byte[] h, int i)
h
- the byte array.i
- the bit index.
public static byte[] hexToBytes(String s)
s
- the hex string to be converted.
public static String bytesToHex(byte[] raw)
raw
- the byte[] to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |