size of raw key should be at least storj.KeySize (#2058)
This commit is contained in:
parent
4e8b5cb972
commit
7a9742f47b
@ -87,7 +87,7 @@ func TestUseOrLoadEncryptionKey(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("ok: use", func(t *testing.T) {
|
||||
rawKey := make([]byte, rand.Intn(100)+1)
|
||||
rawKey := make([]byte, storj.KeySize+rand.Intn(50))
|
||||
_, err := rand.Read(rawKey)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user