open-vault/vault/barrier_aes_gcm_test.go

25 lines
464 B
Go
Raw Normal View History

2015-03-05 21:27:35 +00:00
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
}