Example #1
0
func TestBasic25519(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping test in short mode.")
	} else {
		test.TestGroup(new(BasicCurve).Init(Param25519(), false))
	}
}
Example #2
0
func TestP521(t *testing.T) { test.TestGroup(new(curve).InitP521()) }
Example #3
0
func TestP384(t *testing.T) { test.TestGroup(new(curve).InitP384()) }
Example #4
0
func TestP256(t *testing.T) { test.TestGroup(new(curve).InitP256()) }
Example #5
0
func TestFullOrderE521(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(ParamE521(), true))
}
Example #6
0
func TestFullOrder4147(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(Param41417(), true))
}
Example #7
0
func TestFullOrder25519(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(Param25519(), true))
}
Example #8
0
func TestE521(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(ParamE521(), false))
}
Example #9
0
func Test4147(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(Param41417(), false))
}
Example #10
0
func Test25519(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(Param25519(), false))
}
Example #11
0
func Test1174(t *testing.T) {
	test.TestGroup(new(ExtendedCurve).Init(Param1174(), false))
}
Example #12
0
func TestEd25519(t *testing.T) {
	test.TestGroup(new(ed25519.Curve))
}
Example #13
0
func TestProjective25519(t *testing.T) {
	test.TestGroup(new(ProjectiveCurve).Init(Param25519(), false))
}