Interface Ristretto255.Native

All Known Implementing Classes:
LazySodium, LazySodiumJava
Enclosing interface:
Ristretto255

public static interface Ristretto255.Native
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    cryptoCoreRistretto255Add(byte[] result, byte[] p, byte[] q)
    Adds two given Ristretto255 points p and q and puts the representation of the result into result.
    boolean
    cryptoCoreRistretto255FromHash(byte[] point, byte[] hash)
    Maps a Ristretto255.RISTRETTO255_HASH_BYTES bytes hash to a Ristretto255 point and puts its representation to point.
    boolean
    Returns whether the passed bytes represent a valid Ristretto255 point.
    void
    Chooses a random Ristretto255 point and puts its representation to point
    void
    cryptoCoreRistretto255ScalarAdd(byte[] result, byte[] x, byte[] y)
    Adds two scalars x and y modulo L with L being the order of the Ristretto255 group.
    void
    cryptoCoreRistretto255ScalarComplement(byte[] result, byte[] scalar)
    Calculates the result R for the given scalar value such that R + scalar = 1 (mod L) with L being the order of the Ristretto255 group.
    boolean
    cryptoCoreRistretto255ScalarInvert(byte[] result, byte[] scalar)
    Calculates the multiplicative inverse of the given scalar value.
    void
    cryptoCoreRistretto255ScalarMul(byte[] result, byte[] x, byte[] y)
    Multiplies two scalars x and y modulo L with L being the order of the Ristretto255 group.
    void
    cryptoCoreRistretto255ScalarNegate(byte[] result, byte[] scalar)
    Calculates the additive inverse of the given scalar value.
    void
    Creates a random scalar value in [0, l[ with L being the order of the Ristretto255 group.
    void
    cryptoCoreRistretto255ScalarReduce(byte[] result, byte[] scalar)
    Reduces a possibly larger scalar value to [0, l[ with L being the order of the Ristretto255 group.
    void
    cryptoCoreRistretto255ScalarSub(byte[] result, byte[] x, byte[] y)
    Subtracts two scalars x and y modulo L with L being the order of the Ristretto255 group.
    boolean
    cryptoCoreRistretto255Sub(byte[] result, byte[] p, byte[] q)
    Subtracts two given Ristretto255 points p and q and puts the representation of the result into result.
    boolean
    cryptoScalarmultRistretto255(byte[] result, byte[] n, byte[] point)
    Multiplies the given Ristretto255 point by the scalar n and puts the representation of the result into result.
    boolean
    cryptoScalarmultRistretto255Base(byte[] result, byte[] n)
    Multiplies the Ristretto255 base point by the scalar n and puts the representation of the result into result.