Merge branch 'main' into zkbesu

This commit is contained in:
Fabio Di Fabio
2024-04-09 18:34:48 +02:00
120 changed files with 552 additions and 187 deletions

View File

@@ -50,11 +50,13 @@ public abstract class AbstractSECP256 implements SignatureAlgorithm {
/** The Curve. */
protected final ECDomainParameters curve;
/** The Half curve order. */
protected final BigInteger halfCurveOrder;
/** The Key pair generator. */
protected final KeyPairGenerator keyPairGenerator;
/** The Curve order. */
protected final BigInteger curveOrder;

View File

@@ -30,10 +30,13 @@ public class MessageDigestFactory {
/** Keccak-256 */
public static final String KECCAK256_ALG = "KECCAK-256";
/** SHA-256 */
public static final String SHA256_ALG = "SHA-256";
/** RipeMD-160 */
public static final String RIPEMD160_ALG = "RIPEMD160";
/** Blake2b F Function */
public static final String BLAKE2BF_ALG = "BLAKE2BF";

View File

@@ -26,6 +26,7 @@ public class SECPPrivateKey implements java.security.PrivateKey {
/** Encoded Bytes */
private final Bytes32 encoded;
/** Algorithm */
private final String algorithm;

View File

@@ -34,6 +34,7 @@ public class SECPPublicKey implements java.security.PublicKey {
/** Encoded Bytes */
private final Bytes encoded;
/** Algorithm */
private final String algorithm;

View File

@@ -31,6 +31,7 @@ public class SECPSignature {
/** The constant BYTES_REQUIRED. */
public static final int BYTES_REQUIRED = 65;
/**
* The recovery id to reconstruct the public key used to create the signature.
*

View File

@@ -32,8 +32,10 @@ public abstract class AbstractFqp<T extends AbstractFqp> implements FieldElement
/** The Degree. */
protected final int degree;
/** The Modulus coefficients. */
protected final Fq[] modulusCoefficients;
/** The Coefficients. */
protected final Fq[] coefficients;