diff --git a/core/java/src/net/i2p/crypto/eddsa/math/Encoding.java b/core/java/src/net/i2p/crypto/eddsa/math/Encoding.java index 6dcb0e832a801f56185132f9a68de024bbb34a4c..a921d119203e4f6109e023edf389fd1dfa5baad9 100644 --- a/core/java/src/net/i2p/crypto/eddsa/math/Encoding.java +++ b/core/java/src/net/i2p/crypto/eddsa/math/Encoding.java @@ -1,5 +1,7 @@ package net.i2p.crypto.eddsa.math; +import java.io.Serializable; + /** * Common interface for all (b-1)-bit encodings of elements * of EdDSA finite fields. @@ -8,7 +10,7 @@ package net.i2p.crypto.eddsa.math; * @author str4d * */ -public abstract class Encoding { +public abstract class Encoding implements Serializable { protected Field f; public synchronized void setField(Field f) { diff --git a/core/java/src/net/i2p/crypto/eddsa/math/ScalarOps.java b/core/java/src/net/i2p/crypto/eddsa/math/ScalarOps.java index 8cad008fe522043126d5f0bb41dc7a5fb97770af..2243969c7bb241b8f75bd30446d9bb54038803d7 100644 --- a/core/java/src/net/i2p/crypto/eddsa/math/ScalarOps.java +++ b/core/java/src/net/i2p/crypto/eddsa/math/ScalarOps.java @@ -1,11 +1,13 @@ package net.i2p.crypto.eddsa.math; +import java.io.Serializable; + /** * * @since 0.9.15 * */ -public interface ScalarOps { +public interface ScalarOps extends Serializable { /** * Reduce the given scalar mod l. * <p>