Package at.qubic.api.crypto
Class NoCrypto
java.lang.Object
at.qubic.api.crypto.NoCrypto
- All Implemented Interfaces:
FourQ,SchnorrQubic
Use it if no shared qubic crypto library is installed but the functionality
is not used by your code. Other implementations (QubicFourQ) will try to load the shared library
and fail.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]ecc_mul_fixed(byte[] in) voidecc_mul_fixed(byte[] in, byte[] out) byte[]sign(byte[] subSeed, byte[] publicKey, byte[] digest) byte[]signWithNonceK(byte[] nonceK, byte[] publicKey, byte[] digest) booleanverify(byte[] publicKey, byte[] messageDigest, byte[] signature)
-
Constructor Details
-
NoCrypto
public NoCrypto()
-
-
Method Details
-
ecc_mul_fixed
public byte[] ecc_mul_fixed(byte[] in) - Specified by:
ecc_mul_fixedin interfaceFourQ
-
ecc_mul_fixed
public void ecc_mul_fixed(byte[] in, byte[] out) - Specified by:
ecc_mul_fixedin interfaceFourQ
-
sign
public byte[] sign(byte[] subSeed, byte[] publicKey, byte[] digest) - Specified by:
signin interfaceSchnorrQubic
-
signWithNonceK
public byte[] signWithNonceK(byte[] nonceK, byte[] publicKey, byte[] digest) - Specified by:
signWithNonceKin interfaceSchnorrQubic
-
verify
public boolean verify(byte[] publicKey, byte[] messageDigest, byte[] signature) - Specified by:
verifyin interfaceSchnorrQubic
-