From 9cd69c2f3db7fd4b30d14d86be5fb5a3401054e5 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 10 Jul 2018 15:54:17 -0700 Subject: Internal change PiperOrigin-RevId: 204028082 Change-Id: I4251cce10aace43f9b9a80c36204ef66f1b329df --- pkg/hashio/hashio.go | 3 ++- 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" -- cgit v1.2.3