fixed imports
This commit is contained in:
1 parent
c20fa39e0f
commit
1230137626
9 files changed
+17
-10
No files matched your search
@@ -8,7 +8,6 @@ we are going there.
|
|||||||
|
|
||||||
|
|
||||||
[](https://travis-ci.org/didiercrunch/filou/)
|
[](https://travis-ci.org/didiercrunch/filou/)
|
||||||
[](https://coveralls.io/r/didiercrunch/filou)
|
|
||||||
|
|
||||||
|
|
||||||
## the name
|
## the name
|
||||||
|
|||||||
@@ -5,10 +5,11 @@ import (
|
|||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/didiercrunch/filou/keys"
|
|
||||||
"github.com/didiercrunch/filou/shared"
|
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/keys"
|
||||||
|
"github.com/didiercrunch/filou/shared"
|
||||||
)
|
)
|
||||||
|
|
||||||
type KeyGenerator struct {
|
type KeyGenerator struct {
|
||||||
|
|||||||
@@ -2,12 +2,13 @@ package keygenerator
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/didiercrunch/filou/keys"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/keys"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateRSAKey(t *testing.T) {
|
func TestCreateRSAKey(t *testing.T) {
|
||||||
|
|||||||
+2
-1
@@ -5,8 +5,9 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/filou/shared"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/shared"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
+2
-1
@@ -3,10 +3,11 @@ package keys
|
|||||||
import (
|
import (
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
. "github.com/didiercrunch/filou/helper"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
. "github.com/didiercrunch/filou/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetDefaultRSAPublicKey(t *testing.T) {
|
func TestGetDefaultRSAPublicKey(t *testing.T) {
|
||||||
|
|||||||
@@ -6,9 +6,10 @@ import (
|
|||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/filou/helper"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Blocker func([]byte) (cipher.Block, error)
|
type Blocker func([]byte) (cipher.Block, error)
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ package payload
|
|||||||
import (
|
import (
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/des"
|
"crypto/des"
|
||||||
"github.com/didiercrunch/filou/helper"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getAnyBlock() cipher.Block {
|
func getAnyBlock() cipher.Block {
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ import (
|
|||||||
cryptoSHA512 "crypto/sha512"
|
cryptoSHA512 "crypto/sha512"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/didiercrunch/filou/helper"
|
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
var __ = ioutil.Discard
|
var __ = ioutil.Discard
|
||||||
|
|||||||
@@ -2,10 +2,11 @@ package payload
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/didiercrunch/filou/helper"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/didiercrunch/filou/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestJsonifyMetadata(t *testing.T) {
|
func TestJsonifyMetadata(t *testing.T) {
|
||||||
|
|||||||
Reference in new issue
Block a user