diff --git a/sha512/pysha512.go b/sha512/sha512.go similarity index 98% rename from sha512/pysha512.go rename to sha512/sha512.go index d4c8818..fc1358e 100644 --- a/sha512/pysha512.go +++ b/sha512/sha512.go @@ -15,7 +15,7 @@ func _right_rotate(n [64]frontend.Variable, bits int) [64]frontend.Variable { return result } -func PySha512(api frontend.API, in [] frontend.Variable) ([512] frontend.Variable) { +func Sha512(api frontend.API, in [] frontend.Variable) ([512] frontend.Variable) { _not := func(x [64]frontend.Variable) [64]frontend.Variable { return not(api, x) } diff --git a/sha512/sha_test.go b/sha512/sha_test.go index 19d9a75..c1ef941 100644 --- a/sha512/sha_test.go +++ b/sha512/sha_test.go @@ -15,7 +15,7 @@ type Sha512Circuit struct { } func (circuit *Sha512Circuit) Define(api frontend.API) error { - res := PySha512(api, circuit.in) + res := Sha512(api, circuit.in) if len(res) != 512 { panic("bad length") } for i := 0; i < 512; i++ { api.AssertIsEqual(res[i], circuit.out[i])