File tree 24 files changed +33
-24
lines changed
24 files changed +33
-24
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ require (
76
76
github.com/mholt/archiver/v3 v3.5.1
77
77
github.com/microcosm-cc/bluemonday v1.0.21
78
78
github.com/minio/minio-go/v7 v7.0.46
79
+ github.com/minio/sha256-simd v1.0.0
79
80
github.com/msteinert/pam v1.1.0
80
81
github.com/nektos/act v0.0.0
81
82
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
@@ -220,7 +221,6 @@ require (
220
221
github.com/mholt/acmez v1.0.4 // indirect
221
222
github.com/miekg/dns v1.1.50 // indirect
222
223
github.com/minio/md5-simd v1.1.2 // indirect
223
- github.com/minio/sha256-simd v1.0.0 // indirect
224
224
github.com/mitchellh/copystructure v1.2.0 // indirect
225
225
github.com/mitchellh/mapstructure v1.5.0 // indirect
226
226
github.com/mitchellh/reflectwalk v1.0.2 // indirect
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package auth
5
5
6
6
import (
7
7
"context"
8
- "crypto/sha256"
9
8
"encoding/base32"
10
9
"encoding/base64"
11
10
"fmt"
@@ -18,6 +17,7 @@ import (
18
17
"code.gitea.io/gitea/modules/util"
19
18
20
19
uuid "github.com/google/uuid"
20
+ "github.com/minio/sha256-simd"
21
21
"golang.org/x/crypto/bcrypt"
22
22
"xorm.io/builder"
23
23
"xorm.io/xorm"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package auth
5
5
6
6
import (
7
7
"crypto/md5"
8
- "crypto/sha256"
9
8
"crypto/subtle"
10
9
"encoding/base32"
11
10
"encoding/base64"
@@ -18,6 +17,7 @@ import (
18
17
"code.gitea.io/gitea/modules/timeutil"
19
18
"code.gitea.io/gitea/modules/util"
20
19
20
+ "github.com/minio/sha256-simd"
21
21
"github.com/pquerna/otp/totp"
22
22
"golang.org/x/crypto/pbkdf2"
23
23
)
Original file line number Diff line number Diff line change 4
4
package base
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
9
+ "github.com/minio/sha256-simd"
10
10
"golang.org/x/crypto/pbkdf2"
11
11
)
12
12
Original file line number Diff line number Diff line change 4
4
package v1_14 //nolint
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
9
+ "github.com/minio/sha256-simd"
10
10
"golang.org/x/crypto/argon2"
11
11
"golang.org/x/crypto/bcrypt"
12
12
"golang.org/x/crypto/pbkdf2"
Original file line number Diff line number Diff line change 4
4
package hash
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
"strings"
10
9
11
10
"code.gitea.io/gitea/modules/log"
12
11
12
+ "github.com/minio/sha256-simd"
13
13
"golang.org/x/crypto/pbkdf2"
14
14
)
15
15
Original file line number Diff line number Diff line change 4
4
package avatar
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
"strconv"
9
+
10
+ "github.com/minio/sha256-simd"
10
11
)
11
12
12
13
// HashAvatar will generate a unique string, which ensures that when there's a
Original file line number Diff line number Diff line change 7
7
package identicon
8
8
9
9
import (
10
- "crypto/sha256"
11
10
"fmt"
12
11
"image"
13
12
"image/color"
13
+
14
+ "github.com/minio/sha256-simd"
14
15
)
15
16
16
17
const minImageSize = 16
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package base
6
6
import (
7
7
"crypto/md5"
8
8
"crypto/sha1"
9
- "crypto/sha256"
10
9
"encoding/base64"
11
10
"encoding/hex"
12
11
"errors"
@@ -26,6 +25,7 @@ import (
26
25
"code.gitea.io/gitea/modules/util"
27
26
28
27
"github.com/dustin/go-humanize"
28
+ "github.com/minio/sha256-simd"
29
29
)
30
30
31
31
// EncodeMD5 encodes string to md5 hex value.
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package context
6
6
7
7
import (
8
8
"context"
9
- "crypto/sha256"
10
9
"encoding/hex"
11
10
"errors"
12
11
"fmt"
@@ -40,6 +39,7 @@ import (
40
39
"gitea.com/go-chi/cache"
41
40
"gitea.com/go-chi/session"
42
41
chi "github.com/go-chi/chi/v5"
42
+ "github.com/minio/sha256-simd"
43
43
"github.com/unrolled/render"
44
44
"golang.org/x/crypto/pbkdf2"
45
45
)
Original file line number Diff line number Diff line change 4
4
package git
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"fmt"
9
8
10
9
"code.gitea.io/gitea/modules/log"
11
10
"code.gitea.io/gitea/modules/setting"
11
+
12
+ "github.com/minio/sha256-simd"
12
13
)
13
14
14
15
// Cache represents a caching interface
Original file line number Diff line number Diff line change 4
4
package lfs
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
"errors"
10
9
"hash"
@@ -13,6 +12,8 @@ import (
13
12
14
13
"code.gitea.io/gitea/modules/log"
15
14
"code.gitea.io/gitea/modules/storage"
15
+
16
+ "github.com/minio/sha256-simd"
16
17
)
17
18
18
19
var (
Original file line number Diff line number Diff line change 4
4
package lfs
5
5
6
6
import (
7
- "crypto/sha256"
8
7
"encoding/hex"
9
8
"errors"
10
9
"fmt"
@@ -15,6 +14,8 @@ import (
15
14
"strings"
16
15
17
16
"code.gitea.io/gitea/modules/log"
17
+
18
+ "github.com/minio/sha256-simd"
18
19
)
19
20
20
21
const (
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ import (
7
7
"crypto/aes"
8
8
"crypto/cipher"
9
9
"crypto/rand"
10
- "crypto/sha256"
11
10
"encoding/base64"
12
11
"encoding/hex"
13
12
"errors"
14
13
"io"
14
+
15
+ "github.com/minio/sha256-simd"
15
16
)
16
17
17
18
// AesEncrypt encrypts text and given key with AES.
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ import (
7
7
"crypto"
8
8
"crypto/rand"
9
9
"crypto/rsa"
10
- "crypto/sha256"
11
10
"crypto/x509"
12
11
"encoding/pem"
13
12
"regexp"
14
13
"testing"
15
14
15
+ "github.com/minio/sha256-simd"
16
16
"github.com/stretchr/testify/assert"
17
17
)
18
18
Original file line number Diff line number Diff line change 7
7
"crypto"
8
8
"crypto/rsa"
9
9
"crypto/sha1"
10
- "crypto/sha256"
11
10
"crypto/x509"
12
11
"encoding/base64"
13
12
"encoding/pem"
@@ -25,6 +24,8 @@ import (
25
24
chef_module "code.gitea.io/gitea/modules/packages/chef"
26
25
"code.gitea.io/gitea/modules/util"
27
26
"code.gitea.io/gitea/services/auth"
27
+
28
+ "github.com/minio/sha256-simd"
28
29
)
29
30
30
31
const (
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package maven
6
6
import (
7
7
"crypto/md5"
8
8
"crypto/sha1"
9
- "crypto/sha256"
10
9
"crypto/sha512"
11
10
"encoding/hex"
12
11
"encoding/xml"
@@ -27,6 +26,8 @@ import (
27
26
maven_module "code.gitea.io/gitea/modules/packages/maven"
28
27
"code.gitea.io/gitea/routers/api/packages/helper"
29
28
packages_service "code.gitea.io/gitea/services/packages"
29
+
30
+ "github.com/minio/sha256-simd"
30
31
)
31
32
32
33
const (
Original file line number Diff line number Diff line change 9
9
"crypto/elliptic"
10
10
"crypto/rand"
11
11
"crypto/rsa"
12
- "crypto/sha256"
13
12
"crypto/x509"
14
13
"encoding/base64"
15
14
"encoding/pem"
@@ -25,6 +24,7 @@ import (
25
24
"code.gitea.io/gitea/modules/util"
26
25
27
26
"github.com/golang-jwt/jwt/v4"
27
+ "github.com/minio/sha256-simd"
28
28
ini "gopkg.in/ini.v1"
29
29
)
30
30
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package lfs
5
5
6
6
import (
7
7
stdCtx "context"
8
- "crypto/sha256"
9
8
"encoding/base64"
10
9
"encoding/hex"
11
10
"errors"
@@ -32,6 +31,7 @@ import (
32
31
"code.gitea.io/gitea/modules/storage"
33
32
34
33
"github.com/golang-jwt/jwt/v4"
34
+ "github.com/minio/sha256-simd"
35
35
)
36
36
37
37
// requestContext contain variables from the HTTP request.
Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ package token
6
6
import (
7
7
"context"
8
8
crypto_hmac "crypto/hmac"
9
- "crypto/sha256"
10
9
"encoding/base32"
11
10
"fmt"
12
11
"time"
13
12
14
13
user_model "code.gitea.io/gitea/models/user"
15
14
"code.gitea.io/gitea/modules/util"
15
+
16
+ "github.com/minio/sha256-simd"
16
17
)
17
18
18
19
// A token is a verifiable container describing an action.
Original file line number Diff line number Diff line change 7
7
"context"
8
8
"crypto/hmac"
9
9
"crypto/sha1"
10
- "crypto/sha256"
11
10
"crypto/tls"
12
11
"encoding/hex"
13
12
"fmt"
@@ -29,6 +28,7 @@ import (
29
28
webhook_module "code.gitea.io/gitea/modules/webhook"
30
29
31
30
"github.com/gobwas/glob"
31
+ "github.com/minio/sha256-simd"
32
32
)
33
33
34
34
// Deliver deliver hook task
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"crypto/rand"
12
12
"crypto/rsa"
13
13
"crypto/sha1"
14
- "crypto/sha256"
15
14
"crypto/x509"
16
15
"encoding/base64"
17
16
"encoding/pem"
@@ -34,6 +33,7 @@ import (
34
33
chef_router "code.gitea.io/gitea/routers/api/packages/chef"
35
34
"code.gitea.io/gitea/tests"
36
35
36
+ "github.com/minio/sha256-simd"
37
37
"github.com/stretchr/testify/assert"
38
38
)
39
39
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package integration
5
5
6
6
import (
7
7
"bytes"
8
- "crypto/sha256"
9
8
"encoding/base64"
10
9
"fmt"
11
10
"net/http"
@@ -24,6 +23,7 @@ import (
24
23
api "code.gitea.io/gitea/modules/structs"
25
24
"code.gitea.io/gitea/tests"
26
25
26
+ "github.com/minio/sha256-simd"
27
27
oci "github.com/opencontainers/image-spec/specs-go/v1"
28
28
"github.com/stretchr/testify/assert"
29
29
)
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package integration
5
5
6
6
import (
7
7
"bytes"
8
- "crypto/sha256"
9
8
"fmt"
10
9
"net/http"
11
10
"strings"
@@ -24,6 +23,7 @@ import (
24
23
packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup"
25
24
"code.gitea.io/gitea/tests"
26
25
26
+ "github.com/minio/sha256-simd"
27
27
"github.com/stretchr/testify/assert"
28
28
)
29
29
You can’t perform that action at this time.
0 commit comments