Skip to content

Commit

Permalink
Remove Wipe
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed Mar 9, 2024
1 parent 3d8da64 commit 8206686
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func tpmEncryptionKey() crypto.EncryptionKey {
}
globalTPM = tpm
})
mk, err := crypto.CreateAESMasterKey(crypto.WithTPM(globalTPM))
mk, err := crypto.CreateAESMasterKey(crypto.WithTPM(globalTPM), crypto.WithStrictWipe(false))
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -109,7 +109,6 @@ func TestOpenForUpdate(t *testing.T) {
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
defer tc.mk.Wipe()
dir := t.TempDir()
fn := "test.json"
s := New(dir, tc.mk)
Expand Down Expand Up @@ -226,7 +225,6 @@ func TestEncodeByteSlice(t *testing.T) {
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
defer tc.mk.Wipe()
want := []byte("Hello world")
dir := t.TempDir()
s := New(dir, tc.mk)
Expand Down Expand Up @@ -258,7 +256,6 @@ func TestEncodeBinary(t *testing.T) {
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
defer tc.mk.Wipe()
want := time.Now()
dir := t.TempDir()
s := New(dir, tc.mk)
Expand Down Expand Up @@ -296,7 +293,6 @@ func TestBlobs(t *testing.T) {
}
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
defer tc.mk.Wipe()
dir := t.TempDir()
s := New(dir, tc.mk)

Expand Down Expand Up @@ -386,9 +382,6 @@ func TestBlobs(t *testing.T) {
}

func RunBenchmarkOpenForUpdate(b *testing.B, kb int, k crypto.EncryptionKey, compress, useGOB bool) {
if k != nil {
defer k.Wipe()
}
dir := b.TempDir()
file := filepath.Join(dir, "testfile")
s := New(dir, k)
Expand Down

0 comments on commit 8206686

Please sign in to comment.