Documentation improvements, code cleaned up #2

Merged
pdyraga merged 31 commits from master-with-bson into master 2018-06-05 19:08:37 -04:00
Showing only changes of commit f550c00e74 - Show all commits
+10
View File
@@ -40,6 +40,16 @@ func TestComputeMu(t *testing.T) {
} }
} }
func TestComputeLambda(t *testing.T) {
a := big.NewInt(5)
b := big.NewInt(7)
expected := big.NewInt(12)
if !reflect.DeepEqual(expected, computeLamda(a, b)) {
t.Error("lambda is not correctly computed")
}
}
func TestEncryptDecryptSmall(t *testing.T) { func TestEncryptDecryptSmall(t *testing.T) {
p := big.NewInt(13) p := big.NewInt(13)
q := big.NewInt(11) q := big.NewInt(11)