mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
crypto/ecies: remove useless -dump flag in tests
This commit is contained in:
parent
a7cb0c5ab0
commit
5b60f144c1
1 changed files with 0 additions and 9 deletions
|
|
@ -35,7 +35,6 @@ import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"flag"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
@ -43,14 +42,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
var dumpEnc bool
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
flDump := flag.Bool("dump", false, "write encrypted test message to file")
|
|
||||||
flag.Parse()
|
|
||||||
dumpEnc = *flDump
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure the KDF generates appropriately sized keys.
|
// Ensure the KDF generates appropriately sized keys.
|
||||||
func TestKDF(t *testing.T) {
|
func TestKDF(t *testing.T) {
|
||||||
msg := []byte("Hello, world")
|
msg := []byte("Hello, world")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue