diff options
-rw-r--r-- | pkg/hashio/hashio.go | 3 | ||||
-rw-r--r-- | pkg/state/statefile/statefile.go | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pkg/hashio/hashio.go b/pkg/hashio/hashio.go index d97948850..e0e8ef413 100644 --- a/pkg/hashio/hashio.go +++ b/pkg/hashio/hashio.go @@ -37,11 +37,12 @@ passed hash verification. Hence the client code can safely do any kind of package hashio import ( - "crypto/hmac" "errors" "hash" "io" "sync" + + "crypto/hmac" ) // SegmentSize is the unit we split payload data and insert hash at. diff --git a/pkg/state/statefile/statefile.go b/pkg/state/statefile/statefile.go index 64b0a6312..0b4eff8fa 100644 --- a/pkg/state/statefile/statefile.go +++ b/pkg/state/statefile/statefile.go @@ -46,8 +46,6 @@ package statefile import ( "bytes" "compress/flate" - "crypto/hmac" - "crypto/sha256" "encoding/json" "fmt" "hash" @@ -55,6 +53,8 @@ import ( "strings" "time" + "crypto/hmac" + "crypto/sha256" "gvisor.googlesource.com/gvisor/pkg/binary" "gvisor.googlesource.com/gvisor/pkg/compressio" "gvisor.googlesource.com/gvisor/pkg/hashio" |