mirror of https://github.com/schollz/croc.git
use siec
This commit is contained in:
parent
a9969b161f
commit
f6abf9c4e8
|
@ -1,14 +1,14 @@
|
||||||
package pake
|
package pake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/elliptic"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/tscholl2/siec"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPake(t *testing.T) {
|
func TestPake(t *testing.T) {
|
||||||
curve := elliptic.P521() //siec.SIEC255()
|
curve := siec.SIEC255()
|
||||||
// successful (both have same k)
|
// successful (both have same k)
|
||||||
// initialize A
|
// initialize A
|
||||||
A, err := Init([]byte{1, 2, 3}, 0, curve)
|
A, err := Init([]byte{1, 2, 3}, 0, curve)
|
||||||
|
|
Loading…
Reference in New Issue