Package net.i2p.crypto
Class Blinding
- java.lang.Object
-
- net.i2p.crypto.Blinding
-
public final class Blinding 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 SigningPrivateKey
blind(SigningPrivateKey key, SimpleDataStructure h)
Only for SigType EdDSA_SHA512_Ed25519.static SigningPublicKey
blind(SigningPublicKey key, SimpleDataStructure h)
Only for SigType EdDSA_SHA512_Ed25519.static SigningPrivateKey
unblind(SigningPrivateKey key, SimpleDataStructure h)
Only for SigType EdDSA_SHA512_Ed25519.
-
-
-
Method Detail
-
blind
public static SigningPublicKey blind(SigningPublicKey key, SimpleDataStructure 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 SigningPrivateKey blind(SigningPrivateKey key, SimpleDataStructure 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 SigningPrivateKey unblind(SigningPrivateKey key, SimpleDataStructure 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
-
-