summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-07-10 15:54:17 -0700
committerShentubot <shentubot@google.com>2018-07-10 15:55:10 -0700
commit9cd69c2f3db7fd4b30d14d86be5fb5a3401054e5 (patch)
tree6a33ef5f00b6b077c413035b70deeeab212fcd07
parentb763b3992a2c4f16fc218e1920df5525dd75b114 (diff)
Internal change
PiperOrigin-RevId: 204028082 Change-Id: I4251cce10aace43f9b9a80c36204ef66f1b329df
-rw-r--r--pkg/hashio/hashio.go3
-rw-r--r--pkg/state/statefile/statefile.go4
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"