public final class EdDSABlinding extends Object
| Modifier and Type | Field and Description |
|---|---|
static BigInteger | ORDERORDER. |
| Modifier and Type | Method and Description |
|---|---|
static EdDSAPrivateKey | blind(EdDSAPrivateKey key,
EdDSAPrivateKey alpha)Blind an EdDSA private key. |
static EdDSAPublicKey | blind(EdDSAPublicKey key,
EdDSAPrivateKey alpha)Blind an EdDSA key. |
static byte[] | reduce(byte[] b)Reduce a 64-byte value modulo l. |
static EdDSAPrivateKey | unblind(EdDSAPrivateKey key,
EdDSAPrivateKey alpha)Unblind an EdDSA key using alpha. |
public static final BigInteger ORDER
public static EdDSAPrivateKey blind(EdDSAPrivateKey key, EdDSAPrivateKey alpha)
key - must be SigType EdDSA_SHA512_Ed25519alpha - generated from hash of secret dataUnsupportedOperationException - unless supportedpublic static EdDSAPublicKey blind(EdDSAPublicKey key, EdDSAPrivateKey alpha)
key - must be SigType EdDSA_SHA512_Ed25519alpha - generated from hash of secret dataUnsupportedOperationException - unless supportedpublic static byte[] reduce(byte[] b)
b - 64 bytes little endian of randompublic static EdDSAPrivateKey unblind(EdDSAPrivateKey key, EdDSAPrivateKey alpha)
key - must be SigType EdDSA_SHA512_Ed25519alpha - generated from hash of secret dataUnsupportedOperationException - unless supported