rename Cypher -> Ciphertext

This commit is contained in:
sachaservan committed 2018-08-18 13:19:03 -04:00
1 parent a1d5898e75
commit 9743feecea
6 files changed
+50 -50

No files matched your search

+4 -4
View File
@@ -8,11 +8,11 @@ import (
)
func TestCypherBsonSerialization(t *testing.T) {
cypher := &paillier.Cypher{
ct := &paillier.Ciphertext{
C: b(5),
}
serialized, err := SerializeCypher(cypher)
serialized, err := SerializeCypher(ct)
if err != nil {
t.Fatal(err)
}
@@ -22,11 +22,11 @@ func TestCypherBsonSerialization(t *testing.T) {
t.Fatal(err)
}
if !reflect.DeepEqual(cypher, deserialized) {
if !reflect.DeepEqual(ct, deserialized) {
t.Errorf(
"Unexpected serialization result\nActual: %v\nExpected: %v\n",
deserialized,
cypher,
ct,
)
}
}