Package com.goterl.lazysodium.interfaces
Interface Ristretto255.Lazy
-
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- Ristretto255
public static interface Ristretto255.Lazy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ristretto255.RistrettoPointcryptoCoreRistretto255Add(Ristretto255.RistrettoPoint p, Ristretto255.RistrettoPoint q)Adds two given Ristretto255 pointspandqand returns the result.Ristretto255.RistrettoPointcryptoCoreRistretto255FromHash(byte[] hash)Maps aRistretto255.RISTRETTO255_HASH_BYTESbytes hash to a Ristretto255 point.Ristretto255.RistrettoPointcryptoCoreRistretto255FromHash(java.lang.String hash)Maps aRistretto255.RISTRETTO255_HASH_BYTESbytes hash to aRistretto255.RistrettoPoint.booleancryptoCoreRistretto255IsValidPoint(java.lang.String point)Returns whether the passed encoded string represents a valid Ristretto255 point.Ristretto255.RistrettoPointcryptoCoreRistretto255Random()Chooses a random Ristretto255 point and returns it.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(byte[] x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(byte[] x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(byte[] x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.lang.String x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.lang.String x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.lang.String x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarComplement(byte[] scalar)Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarComplement(java.lang.String scalarEnc)Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarComplement(java.math.BigInteger scalar)Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarInvert(byte[] scalar)Calculates the multiplicative inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarInvert(java.lang.String scalarEnc)Calculates the multiplicative inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarInvert(java.math.BigInteger scalar)Calculates the multiplicative inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarMul(byte[] x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(byte[] x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(byte[] x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.lang.String x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.lang.String x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.lang.String x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.math.BigInteger x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.math.BigInteger x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarMul(java.math.BigInteger x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarNegate(byte[] scalar)Calculates the additive inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarNegate(java.lang.String scalarEnc)Calculates the additive inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarNegate(java.math.BigInteger scalar)Calculates the additive inverse of the given scalar value.java.math.BigIntegercryptoCoreRistretto255ScalarRandom()Creates a random scalar value in[0, l[withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarReduce(byte[] scalar)Reduces a possibly larger scalar value to[0, L[withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarReduce(java.lang.String scalarEnc)Reduces a possibly larger scalar value to[0, l[withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarReduce(java.math.BigInteger scalar)Reduces a possibly larger scalar value to[0, l[withLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(byte[] x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(byte[] x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(byte[] x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.lang.String x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.lang.String x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.lang.String x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.math.BigInteger x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.math.BigInteger x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.java.math.BigIntegercryptoCoreRistretto255ScalarSub(java.math.BigInteger x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.Ristretto255.RistrettoPointcryptoCoreRistretto255Sub(Ristretto255.RistrettoPoint p, Ristretto255.RistrettoPoint q)Subtracts two given Ristretto255 pointspandqand returns the result.Ristretto255.RistrettoPointcryptoScalarmultRistretto255(byte[] n, Ristretto255.RistrettoPoint point)Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.Ristretto255.RistrettoPointcryptoScalarmultRistretto255(java.lang.String nEnc, Ristretto255.RistrettoPoint point)Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.Ristretto255.RistrettoPointcryptoScalarmultRistretto255(java.math.BigInteger n, Ristretto255.RistrettoPoint point)Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.Ristretto255.RistrettoPointcryptoScalarmultRistretto255Base(byte[] n)Multiplies the Ristretto255 base point by the scalarnand returns the result.Ristretto255.RistrettoPointcryptoScalarmultRistretto255Base(java.lang.String nEnc)Multiplies the Ristretto255 base point by the scalarnand returns the result.Ristretto255.RistrettoPointcryptoScalarmultRistretto255Base(java.math.BigInteger n)Multiplies the Ristretto255 base point by the scalarnand returns the result.
-
-
-
Method Detail
-
cryptoCoreRistretto255IsValidPoint
boolean cryptoCoreRistretto255IsValidPoint(java.lang.String point)
Returns whether the passed encoded string represents a valid Ristretto255 point.- Parameters:
point- the point to check- Returns:
- true if valid
-
cryptoCoreRistretto255Random
Ristretto255.RistrettoPoint cryptoCoreRistretto255Random()
Chooses a random Ristretto255 point and returns it.- Returns:
- a random Ristretto255 point
-
cryptoCoreRistretto255FromHash
Ristretto255.RistrettoPoint cryptoCoreRistretto255FromHash(java.lang.String hash) throws SodiumException
Maps aRistretto255.RISTRETTO255_HASH_BYTESbytes hash to aRistretto255.RistrettoPoint.- Parameters:
hash- the encoded hash- Returns:
- the corresponding Ristretto255 point
- Throws:
SodiumException
-
cryptoCoreRistretto255FromHash
Ristretto255.RistrettoPoint cryptoCoreRistretto255FromHash(byte[] hash) throws SodiumException
Maps aRistretto255.RISTRETTO255_HASH_BYTESbytes hash to a Ristretto255 point.- Parameters:
hash- the hash, must beRistretto255.RISTRETTO255_HASH_BYTES- Returns:
- the corresponding Ristretto255 point
- Throws:
SodiumException
-
cryptoScalarmultRistretto255
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255(java.math.BigInteger n, Ristretto255.RistrettoPoint point) throws SodiumException
Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.- Parameters:
n- the scalarpoint- the Ristretto255 point- Returns:
- the result
- Throws:
SodiumException
-
cryptoScalarmultRistretto255
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255(java.lang.String nEnc, Ristretto255.RistrettoPoint point) throws SodiumException
Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.- Parameters:
nEnc- the encoded scalar bytes, in little-endian byte orderpoint- the Ristretto255 point- Returns:
- the result
- Throws:
SodiumException
-
cryptoScalarmultRistretto255
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255(byte[] n, Ristretto255.RistrettoPoint point) throws SodiumException
Multiplies the given Ristretto255pointby the scalarnand returns the resulting point.- Parameters:
n- the scalar, must beRistretto255.RISTRETTO255_BYTESbytes, in little-endian encodingpoint- the Ristretto255 point- Returns:
- the result
- Throws:
SodiumException
-
cryptoScalarmultRistretto255Base
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255Base(java.math.BigInteger n) throws SodiumException
Multiplies the Ristretto255 base point by the scalarnand returns the result.- Parameters:
n- the scalar- Returns:
- the result
- Throws:
SodiumException
-
cryptoScalarmultRistretto255Base
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255Base(java.lang.String nEnc) throws SodiumException
Multiplies the Ristretto255 base point by the scalarnand returns the result.- Parameters:
nEnc- the encoded scalar, in little-endian byte order- Returns:
- the result
- Throws:
SodiumException
-
cryptoScalarmultRistretto255Base
Ristretto255.RistrettoPoint cryptoScalarmultRistretto255Base(byte[] n) throws SodiumException
Multiplies the Ristretto255 base point by the scalarnand returns the result.- Parameters:
n- the scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes, in little-endian encoding- Returns:
- the result
- Throws:
SodiumException
-
cryptoCoreRistretto255Add
Ristretto255.RistrettoPoint cryptoCoreRistretto255Add(Ristretto255.RistrettoPoint p, Ristretto255.RistrettoPoint q) throws SodiumException
Adds two given Ristretto255 pointspandqand returns the result.- Parameters:
p- the first Ristretto255 pointq- the second Ristretto255 point- Returns:
- the sum
- Throws:
SodiumException
-
cryptoCoreRistretto255Sub
Ristretto255.RistrettoPoint cryptoCoreRistretto255Sub(Ristretto255.RistrettoPoint p, Ristretto255.RistrettoPoint q) throws SodiumException
Subtracts two given Ristretto255 pointspandqand returns the result.- Parameters:
p- the first Ristretto255 pointq- the second Ristretto255 point- Returns:
- the difference
- Throws:
SodiumException
-
cryptoCoreRistretto255ScalarRandom
java.math.BigInteger cryptoCoreRistretto255ScalarRandom()
Creates a random scalar value in[0, l[withLbeing the order of the Ristretto255 group.- Returns:
- the random scalar value
-
cryptoCoreRistretto255ScalarReduce
java.math.BigInteger cryptoCoreRistretto255ScalarReduce(java.math.BigInteger scalar)
Reduces a possibly larger scalar value to[0, l[withLbeing the order of the Ristretto255 group.- Parameters:
scalar- the scalar to reduce- Returns:
- the reduced scalar
-
cryptoCoreRistretto255ScalarReduce
java.math.BigInteger cryptoCoreRistretto255ScalarReduce(java.lang.String scalarEnc)
Reduces a possibly larger scalar value to[0, l[withLbeing the order of the Ristretto255 group.- Parameters:
scalarEnc- the encoded scalar to reduce- Returns:
- the reduced scalar
-
cryptoCoreRistretto255ScalarReduce
java.math.BigInteger cryptoCoreRistretto255ScalarReduce(byte[] scalar)
Reduces a possibly larger scalar value to[0, L[withLbeing the order of the Ristretto255 group.- Parameters:
scalar- the scalar to reduce, must beRistretto255.RISTRETTO255_NON_REDUCED_SCALAR_BYTESbytes- Returns:
- the reduced scalar
-
cryptoCoreRistretto255ScalarInvert
java.math.BigInteger cryptoCoreRistretto255ScalarInvert(java.math.BigInteger scalar) throws SodiumExceptionCalculates the multiplicative inverse of the given scalar value.- Parameters:
scalar- the scalar to invert- Returns:
- the multiplicative inverse
- Throws:
SodiumException
-
cryptoCoreRistretto255ScalarInvert
java.math.BigInteger cryptoCoreRistretto255ScalarInvert(java.lang.String scalarEnc) throws SodiumExceptionCalculates the multiplicative inverse of the given scalar value.- Parameters:
scalarEnc- the encoded scalar to invert- Returns:
- the multiplicative inverse
- Throws:
SodiumException
-
cryptoCoreRistretto255ScalarInvert
java.math.BigInteger cryptoCoreRistretto255ScalarInvert(byte[] scalar) throws SodiumExceptionCalculates the multiplicative inverse of the given scalar value.- Parameters:
scalar- the scalar to invert, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the multiplicative inverse
- Throws:
SodiumException
-
cryptoCoreRistretto255ScalarNegate
java.math.BigInteger cryptoCoreRistretto255ScalarNegate(java.math.BigInteger scalar)
Calculates the additive inverse of the given scalar value.- Parameters:
scalar- the scalar to negate- Returns:
- the additive inverse
-
cryptoCoreRistretto255ScalarNegate
java.math.BigInteger cryptoCoreRistretto255ScalarNegate(java.lang.String scalarEnc)
Calculates the additive inverse of the given scalar value.- Parameters:
scalarEnc- the encoded scalar to negate- Returns:
- the additive inverse
-
cryptoCoreRistretto255ScalarNegate
java.math.BigInteger cryptoCoreRistretto255ScalarNegate(byte[] scalar)
Calculates the additive inverse of the given scalar value.- Parameters:
scalar- the scalar to negate, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the additive inverse
-
cryptoCoreRistretto255ScalarComplement
java.math.BigInteger cryptoCoreRistretto255ScalarComplement(java.math.BigInteger scalar)
Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.- Parameters:
scalar- the scalar to complement- Returns:
- the complement
-
cryptoCoreRistretto255ScalarComplement
java.math.BigInteger cryptoCoreRistretto255ScalarComplement(java.lang.String scalarEnc)
Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.- Parameters:
scalarEnc- the encoded scalar to complement- Returns:
- the complement
-
cryptoCoreRistretto255ScalarComplement
java.math.BigInteger cryptoCoreRistretto255ScalarComplement(byte[] scalar)
Calculates the result R for the given scalar value such thatR + scalar = 1 (mod L)withLbeing the order of the Ristretto255 group.- Parameters:
scalar- the scalar to complement, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the complement
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar (encoded)- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.lang.String x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.lang.String x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar (encoded)- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.lang.String x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(byte[] x, java.lang.String y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar (encoded)- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(java.math.BigInteger x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(byte[] x, java.math.BigInteger y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar- Returns:
- the sum
-
cryptoCoreRistretto255ScalarAdd
java.math.BigInteger cryptoCoreRistretto255ScalarAdd(byte[] x, byte[] y)Adds two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the sum
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.math.BigInteger x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.math.BigInteger x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar (encoded)- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.lang.String x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.lang.String x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar (encoded)- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.lang.String x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(byte[] x, java.lang.String y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar (encoded)- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(java.math.BigInteger x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(byte[] x, java.math.BigInteger y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar- Returns:
- the difference
-
cryptoCoreRistretto255ScalarSub
java.math.BigInteger cryptoCoreRistretto255ScalarSub(byte[] x, byte[] y)Subtracts two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the difference
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.math.BigInteger x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.math.BigInteger x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar (encoded)- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.lang.String x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.lang.String x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar (encoded)- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.lang.String x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar (encoded)y- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(byte[] x, java.lang.String y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar (encoded)- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(java.math.BigInteger x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalary- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(byte[] x, java.math.BigInteger y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar- Returns:
- the product
-
cryptoCoreRistretto255ScalarMul
java.math.BigInteger cryptoCoreRistretto255ScalarMul(byte[] x, byte[] y)Multiplies two scalarsxandymoduloLwithLbeing the order of the Ristretto255 group.- Parameters:
x- the first scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytesy- the second scalar, must beRistretto255.RISTRETTO255_SCALAR_BYTESbytes- Returns:
- the product
-
-