org.bouncycastle.math.ec.rfc8032
Class Ed448
java.lang.Object
org.bouncycastle.math.ec.rfc8032.Ed448
- public abstract class Ed448
- extends java.lang.Object
Constructor Summary |
Ed448()
|
Method Summary |
static Xof |
createPrehash()
|
static void |
generatePrivateKey(java.security.SecureRandom random,
byte[] k)
|
static void |
generatePublicKey(byte[] sk,
int skOff,
byte[] pk,
int pkOff)
|
static void |
precompute()
|
static void |
scalarMultBaseXY(X448.Friend friend,
byte[] k,
int kOff,
int[] x,
int[] y)
NOTE: Only for use by X448 |
static void |
sign(byte[] sk,
int skOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff)
|
static void |
sign(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff)
|
static void |
signPrehash(byte[] sk,
int skOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff)
|
static void |
signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff)
|
static void |
signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
Xof ph,
byte[] sig,
int sigOff)
|
static void |
signPrehash(byte[] sk,
int skOff,
byte[] ctx,
Xof ph,
byte[] sig,
int sigOff)
|
static boolean |
validatePublicKeyFull(byte[] pk,
int pkOff)
|
static boolean |
validatePublicKeyPartial(byte[] pk,
int pkOff)
|
static boolean |
verify(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen)
|
static boolean |
verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff)
|
static boolean |
verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
Xof ph)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREHASH_SIZE
public static final int PREHASH_SIZE
- See Also:
- Constant Field Values
PUBLIC_KEY_SIZE
public static final int PUBLIC_KEY_SIZE
- See Also:
- Constant Field Values
SECRET_KEY_SIZE
public static final int SECRET_KEY_SIZE
- See Also:
- Constant Field Values
SIGNATURE_SIZE
public static final int SIGNATURE_SIZE
- See Also:
- Constant Field Values
Ed448
public Ed448()
createPrehash
public static Xof createPrehash()
generatePrivateKey
public static void generatePrivateKey(java.security.SecureRandom random,
byte[] k)
generatePublicKey
public static void generatePublicKey(byte[] sk,
int skOff,
byte[] pk,
int pkOff)
precompute
public static void precompute()
scalarMultBaseXY
public static void scalarMultBaseXY(X448.Friend friend,
byte[] k,
int kOff,
int[] x,
int[] y)
- NOTE: Only for use by X448
sign
public static void sign(byte[] sk,
int skOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff)
sign
public static void sign(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen,
byte[] sig,
int sigOff)
signPrehash
public static void signPrehash(byte[] sk,
int skOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff)
signPrehash
public static void signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff,
byte[] sig,
int sigOff)
signPrehash
public static void signPrehash(byte[] sk,
int skOff,
byte[] ctx,
Xof ph,
byte[] sig,
int sigOff)
signPrehash
public static void signPrehash(byte[] sk,
int skOff,
byte[] pk,
int pkOff,
byte[] ctx,
Xof ph,
byte[] sig,
int sigOff)
validatePublicKeyFull
public static boolean validatePublicKeyFull(byte[] pk,
int pkOff)
validatePublicKeyPartial
public static boolean validatePublicKeyPartial(byte[] pk,
int pkOff)
verify
public static boolean verify(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] m,
int mOff,
int mLen)
verifyPrehash
public static boolean verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
byte[] ph,
int phOff)
verifyPrehash
public static boolean verifyPrehash(byte[] sig,
int sigOff,
byte[] pk,
int pkOff,
byte[] ctx,
Xof ph)