package io.particle.ecjpake4j

interface EcJPake {

    /** Generate local round 1 ("c1")  */
    fun createLocalRoundOne(): ByteArray

    /** Read round one from other side ("s1")  */
    fun receiveRemoteRoundOne(s1: ByteArray)

    /** Read round two from other side ("s2")  */
    fun receiveRemoteRoundTwo(s2: ByteArray)

    /** Create local round 2 ("c2")  */
    fun createLocalRoundTwo(): ByteArray

    /** Calculate the shared secret, from which the key will be derived */
    fun calculateSharedSecret(): ByteArray

}



enum class Role(val asString: String) {
    SERVER("server"),
    CLIENT("client")
}

Introduce basic JPAKE wrapper interface
Introduce basic JPAKE wrapper interface

spark/photon-tinker-android,spark/photon-tinker-android