all: Use github.com/minio/sha256-simd

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3581
This commit is contained in:
Jakob Borg
2016-09-09 09:57:51 +00:00
committed by Audrius Butkevicius
parent 3990014073
commit 5e99d38412
31 changed files with 3547 additions and 20 deletions

View File

@@ -7,12 +7,13 @@ package protocol
import (
"bytes"
"crypto/sha256"
"encoding/binary"
"errors"
"fmt"
"time"
"github.com/minio/sha256-simd"
"github.com/syncthing/syncthing/lib/rand"
)

View File

@@ -4,7 +4,6 @@ package protocol
import (
"bytes"
"crypto/sha256"
"encoding/base32"
"encoding/binary"
"errors"
@@ -12,6 +11,8 @@ import (
"regexp"
"strings"
"github.com/minio/sha256-simd"
"github.com/calmh/luhn"
)

View File

@@ -8,10 +8,11 @@ package scanner
import (
"bytes"
"crypto/sha256"
"fmt"
"io"
"github.com/minio/sha256-simd"
"github.com/syncthing/syncthing/lib/protocol"
)

View File

@@ -12,7 +12,6 @@ import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"crypto/x509"
"encoding/asn1"
"encoding/pem"
@@ -20,6 +19,8 @@ import (
"fmt"
"io"
"math/big"
"github.com/minio/sha256-simd"
)
// GenerateKeys returns a new key pair, with the private and public key