Exemple #1
0
func TestCompareBasicProjectiveE521(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping test in short mode.")
	} else {
		test.TestCompareGroups(testSuite,
			new(BasicCurve).Init(ParamE521(), false),
			new(ProjectiveCurve).Init(ParamE521(), false))
	}
}
Exemple #2
0
// Test Ed25519 versus ExtendedCurve implementations of Curve25519.
func TestCompareEd25519(t *testing.T) {
	test.TestCompareGroups(testSuite,
		new(ExtendedCurve).Init(Param25519(), false),
		new(ed25519.Curve))
}
Exemple #3
0
func TestCompareProjectiveExtendedE521(t *testing.T) {
	test.TestCompareGroups(testSuite,
		new(ProjectiveCurve).Init(ParamE521(), false),
		new(ExtendedCurve).Init(ParamE521(), false))
}