Skip to content

Commit

Permalink
all: Use github.com/minio/sha256-simd
Browse files Browse the repository at this point in the history
GitHub-Pull-Request: syncthing#3581
  • Loading branch information
calmh authored and AudriusButkevicius committed Sep 9, 2016
1 parent 3990014 commit 5e99d38
Show file tree
Hide file tree
Showing 31 changed files with 3,547 additions and 20 deletions.
3 changes: 2 additions & 1 deletion cmd/syncthing/usage_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package main
import (
"bytes"
"crypto/rand"
"crypto/sha256"
"crypto/tls"
"encoding/json"
"fmt"
Expand All @@ -19,6 +18,8 @@ import (
"strings"
"time"

"github.com/minio/sha256-simd"

"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/dialer"
"github.com/syncthing/syncthing/lib/model"
Expand Down
3 changes: 2 additions & 1 deletion lib/protocol/bep_extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion lib/protocol/deviceid.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ package protocol

import (
"bytes"
"crypto/sha256"
"encoding/base32"
"encoding/binary"
"errors"
"fmt"
"regexp"
"strings"

"github.com/minio/sha256-simd"

"github.com/calmh/luhn"
)

Expand Down
3 changes: 2 additions & 1 deletion lib/scanner/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ package scanner

import (
"bytes"
"crypto/sha256"
"fmt"
"io"

"github.com/minio/sha256-simd"

"github.com/syncthing/syncthing/lib/protocol"
)

Expand Down
3 changes: 2 additions & 1 deletion lib/signature/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"crypto/x509"
"encoding/asn1"
"encoding/pem"
"errors"
"fmt"
"io"
"math/big"

"github.com/minio/sha256-simd"
)

// GenerateKeys returns a new key pair, with the private and public key
Expand Down
202 changes: 202 additions & 0 deletions vendor/github.com/minio/sha256-simd/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions vendor/github.com/minio/sha256-simd/cpuid.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions vendor/github.com/minio/sha256-simd/cpuid_386.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions vendor/github.com/minio/sha256-simd/cpuid_386.s

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e99d38

Please sign in to comment.