File tree 22 files changed +22
-32
lines changed
22 files changed +22
-32
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ require (
78
78
github.com/mholt/archiver/v3 v3.5.1
79
79
github.com/microcosm-cc/bluemonday v1.0.26
80
80
github.com/minio/minio-go/v7 v7.0.66
81
- github.com/minio/sha256-simd v1.0.1
82
81
github.com/msteinert/pam v1.2.0
83
82
github.com/nektos/act v0.2.52
84
83
github.com/niklasfasching/go-org v1.7.0
@@ -230,6 +229,7 @@ require (
230
229
github.com/mholt/acmez v1.2.0 // indirect
231
230
github.com/miekg/dns v1.1.58 // indirect
232
231
github.com/minio/md5-simd v1.1.2 // indirect
232
+ github.com/minio/sha256-simd v1.0.1 // indirect
233
233
github.com/mitchellh/copystructure v1.2.0 // indirect
234
234
github.com/mitchellh/mapstructure v1.5.0 // indirect
235
235
github.com/mitchellh/reflectwalk v1.0.2 // indirect
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package auth
6
6
import (
7
7
"context"
8
8
"crypto/md5"
9
+ "crypto/sha256"
9
10
"crypto/subtle"
10
11
"encoding/base32"
11
12
"encoding/base64"
@@ -18,7 +19,6 @@ import (
18
19
"code.gitea.io/gitea/modules/timeutil"
19
20
"code.gitea.io/gitea/modules/util"
20
21
21
- "github.com/minio/sha256-simd"
22
22
"github.com/pquerna/otp/totp"
23
23
"golang.org/x/crypto/pbkdf2"
24
24
)
Original file line number Diff line number Diff line change 4
4
package base
5
5
6
6
import (
7
+ "crypto/sha256"
7
8
"encoding/hex"
8
9
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"
7
8
"encoding/hex"
8
9
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"
7
8
"encoding/hex"
8
9
"strings"
9
10
10
11
"code.gitea.io/gitea/modules/log"
11
12
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"
7
8
"encoding/hex"
8
9
"strconv"
9
-
10
- "github.com/minio/sha256-simd"
11
10
)
12
11
13
12
// 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"
10
11
"fmt"
11
12
"image"
12
13
"image/color"
13
-
14
- "github.com/minio/sha256-simd"
15
14
)
16
15
17
16
const minImageSize = 16
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package base
5
5
6
6
import (
7
7
"crypto/sha1"
8
+ "crypto/sha256"
8
9
"encoding/base64"
9
10
"encoding/hex"
10
11
"errors"
@@ -22,7 +23,6 @@ import (
22
23
"code.gitea.io/gitea/modules/setting"
23
24
24
25
"github.com/dustin/go-humanize"
25
- "github.com/minio/sha256-simd"
26
26
)
27
27
28
28
// EncodeSha1 string to sha1 hex value.
Original file line number Diff line number Diff line change 4
4
package git
5
5
6
6
import (
7
+ "crypto/sha256"
7
8
"fmt"
8
9
9
10
"code.gitea.io/gitea/modules/log"
10
11
"code.gitea.io/gitea/modules/setting"
11
-
12
- "github.com/minio/sha256-simd"
13
12
)
14
13
15
14
// 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"
7
8
"encoding/hex"
8
9
"errors"
9
10
"hash"
@@ -12,8 +13,6 @@ import (
12
13
13
14
"code.gitea.io/gitea/modules/log"
14
15
"code.gitea.io/gitea/modules/storage"
15
-
16
- "github.com/minio/sha256-simd"
17
16
)
18
17
19
18
var (
Original file line number Diff line number Diff line change 4
4
package lfs
5
5
6
6
import (
7
+ "crypto/sha256"
7
8
"encoding/hex"
8
9
"errors"
9
10
"fmt"
@@ -12,8 +13,6 @@ import (
12
13
"regexp"
13
14
"strconv"
14
15
"strings"
15
-
16
- "github.com/minio/sha256-simd"
17
16
)
18
17
19
18
const (
Original file line number Diff line number Diff line change @@ -7,13 +7,12 @@ import (
7
7
"crypto/aes"
8
8
"crypto/cipher"
9
9
"crypto/rand"
10
+ "crypto/sha256"
10
11
"encoding/base64"
11
12
"encoding/hex"
12
13
"errors"
13
14
"fmt"
14
15
"io"
15
-
16
- "github.com/minio/sha256-simd"
17
16
)
18
17
19
18
// AesEncrypt encrypts text and given key with AES.
Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ import (
7
7
"crypto"
8
8
"crypto/rand"
9
9
"crypto/rsa"
10
+ "crypto/sha256"
10
11
"crypto/x509"
11
12
"encoding/pem"
12
-
13
- "github.com/minio/sha256-simd"
14
13
)
15
14
16
15
// GenerateKeyPair generates a public and private keypair
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"
10
11
"crypto/x509"
11
12
"encoding/pem"
12
13
"regexp"
13
14
"testing"
14
15
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 8
8
"crypto"
9
9
"crypto/rsa"
10
10
"crypto/sha1"
11
+ "crypto/sha256"
11
12
"crypto/x509"
12
13
"encoding/base64"
13
14
"encoding/pem"
@@ -26,8 +27,6 @@ import (
26
27
chef_module "code.gitea.io/gitea/modules/packages/chef"
27
28
"code.gitea.io/gitea/modules/util"
28
29
"code.gitea.io/gitea/services/auth"
29
-
30
- "github.com/minio/sha256-simd"
31
30
)
32
31
33
32
const (
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package maven
6
6
import (
7
7
"crypto/md5"
8
8
"crypto/sha1"
9
+ "crypto/sha256"
9
10
"crypto/sha512"
10
11
"encoding/hex"
11
12
"encoding/xml"
@@ -26,8 +27,6 @@ import (
26
27
maven_module "code.gitea.io/gitea/modules/packages/maven"
27
28
"code.gitea.io/gitea/routers/api/packages/helper"
28
29
packages_service "code.gitea.io/gitea/services/packages"
29
-
30
- "github.com/minio/sha256-simd"
31
30
)
32
31
33
32
const (
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package lfs
5
5
6
6
import (
7
7
stdCtx "context"
8
+ "crypto/sha256"
8
9
"encoding/base64"
9
10
"encoding/hex"
10
11
"errors"
@@ -33,7 +34,6 @@ import (
33
34
"code.gitea.io/gitea/modules/storage"
34
35
35
36
"github.com/golang-jwt/jwt/v5"
36
- "github.com/minio/sha256-simd"
37
37
)
38
38
39
39
// requestContext contain variables from the HTTP request.
Original file line number Diff line number Diff line change @@ -6,14 +6,13 @@ package token
6
6
import (
7
7
"context"
8
8
crypto_hmac "crypto/hmac"
9
+ "crypto/sha256"
9
10
"encoding/base32"
10
11
"fmt"
11
12
"time"
12
13
13
14
user_model "code.gitea.io/gitea/models/user"
14
15
"code.gitea.io/gitea/modules/util"
15
-
16
- "github.com/minio/sha256-simd"
17
16
)
18
17
19
18
// 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"
10
11
"crypto/tls"
11
12
"encoding/hex"
12
13
"fmt"
@@ -29,7 +30,6 @@ import (
29
30
webhook_module "code.gitea.io/gitea/modules/webhook"
30
31
31
32
"github.com/gobwas/glob"
32
- "github.com/minio/sha256-simd"
33
33
)
34
34
35
35
// Deliver deliver hook task
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"crypto/rand"
12
12
"crypto/rsa"
13
13
"crypto/sha1"
14
+ "crypto/sha256"
14
15
"crypto/x509"
15
16
"encoding/base64"
16
17
"encoding/pem"
@@ -33,7 +34,6 @@ import (
33
34
chef_router "code.gitea.io/gitea/routers/api/packages/chef"
34
35
"code.gitea.io/gitea/tests"
35
36
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,6 +5,7 @@ package integration
5
5
6
6
import (
7
7
"bytes"
8
+ "crypto/sha256"
8
9
"encoding/base64"
9
10
"fmt"
10
11
"net/http"
@@ -24,7 +25,6 @@ import (
24
25
"code.gitea.io/gitea/modules/test"
25
26
"code.gitea.io/gitea/tests"
26
27
27
- "github.com/minio/sha256-simd"
28
28
oci "github.com/opencontainers/image-spec/specs-go/v1"
29
29
"github.com/stretchr/testify/assert"
30
30
)
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package integration
5
5
6
6
import (
7
7
"bytes"
8
+ "crypto/sha256"
8
9
"fmt"
9
10
"net/http"
10
11
"strings"
@@ -24,7 +25,6 @@ import (
24
25
packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup"
25
26
"code.gitea.io/gitea/tests"
26
27
27
- "github.com/minio/sha256-simd"
28
28
"github.com/stretchr/testify/assert"
29
29
)
30
30
You can’t perform that action at this time.
0 commit comments