open-vault/vault/barrier_aes_gcm_test.go
2015-03-05 13:27:35 -08:00

25 lines
464 B
Go

package vault
import (
"testing"
"github.com/hashicorp/vault/physical"
)
func TestAESGCMBarrier_Basic(t *testing.T) {
inm := physical.NewInmem()
b, err := NewAESGCMBarrier(inm)
if err != nil {
t.Fatalf("err: %v", err)
}
testBarrier(t, b)
}
func TestAESGCMBarrier_Confidential(t *testing.T) {
// TODO: Verify data sent through is encrypted
}
func TestAESGCMBarrier_Integrity(t *testing.T) {
// TODO: Verify data sent through is cannot be tampered
}