コード例 #1
0
ファイル: basic_test.go プロジェクト: LegoShrimp/crypto
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))
	}
}
コード例 #2
0
ファイル: curve_test.go プロジェクト: Liamsi/crypto
// Test Ed25519 versus ExtendedCurve implementations of Curve25519.
func TestCompareEd25519(t *testing.T) {
	test.TestCompareGroups(testSuite,
		new(ExtendedCurve).Init(Param25519(), false),
		new(ed25519.Curve))
}
コード例 #3
0
ファイル: curve_test.go プロジェクト: Liamsi/crypto
func TestCompareProjectiveExtendedE521(t *testing.T) {
	test.TestCompareGroups(testSuite,
		new(ProjectiveCurve).Init(ParamE521(), false),
		new(ExtendedCurve).Init(ParamE521(), false))
}