Package net.i2p.crypto.eddsa
Class EdDSABlinding
- java.lang.Object
-
- net.i2p.crypto.eddsa.EdDSABlinding
-
public final class EdDSABlinding extends Object
Utilities for Blinding EdDSA keys. PRELIMINARY - Subject to change - see proposal 123- Since:
- 0.9.38
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EdDSAPrivateKey
blind(EdDSAPrivateKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.static EdDSAPublicKey
blind(EdDSAPublicKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.static EdDSAPrivateKey
unblind(EdDSAPrivateKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.
-
-
-
Method Detail
-
blind
public static EdDSAPublicKey blind(EdDSAPublicKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.- Parameters:
key
- must be SigType EdDSA_SHA512_Ed25519h
- hash of secret data, same length as this key- Throws:
UnsupportedOperationException
- unless supported
-
blind
public static EdDSAPrivateKey blind(EdDSAPrivateKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.- Parameters:
key
- must be SigType EdDSA_SHA512_Ed25519h
- hash of secret data, same length as this key- Throws:
UnsupportedOperationException
- unless supported
-
unblind
public static EdDSAPrivateKey unblind(EdDSAPrivateKey key, byte[] h)
Only for SigType EdDSA_SHA512_Ed25519.- Parameters:
key
- must be SigType EdDSA_SHA512_Ed25519h
- hash of secret data, same length as this key- Throws:
UnsupportedOperationException
- unless supported
-
-