summaryrefslogtreecommitdiff
path: root/gocryptfs-xray/xray_tests/xray_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocryptfs-xray/xray_tests/xray_test.go')
-rw-r--r--gocryptfs-xray/xray_tests/xray_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/gocryptfs-xray/xray_tests/xray_test.go b/gocryptfs-xray/xray_tests/xray_test.go
index a3374b0..8e5fc0c 100644
--- a/gocryptfs-xray/xray_tests/xray_test.go
+++ b/gocryptfs-xray/xray_tests/xray_test.go
@@ -24,3 +24,20 @@ func TestAesgcmXray(t *testing.T) {
fmt.Printf("have:\n%s", string(out))
}
}
+
+func TestAessivXray(t *testing.T) {
+ expected, err := ioutil.ReadFile("aessiv_fs.xray.txt")
+ if err != nil {
+ t.Fatal(err)
+ }
+ cmd := exec.Command("../gocryptfs-xray", "-aessiv", "aessiv_fs/Ldq-c4ADpM5iGSSrPjUAqQ")
+ out, err := cmd.CombinedOutput()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if bytes.Compare(out, expected) != 0 {
+ t.Errorf("Unexpected output")
+ fmt.Printf("expected:\n%s", string(expected))
+ fmt.Printf("have:\n%s", string(out))
+ }
+}