aboutsummaryrefslogtreecommitdiffstats
path: root/models/auth
diff options
context:
space:
mode:
Diffstat (limited to 'models/auth')
-rw-r--r--models/auth/oauth2.go2
-rw-r--r--models/auth/twofactor.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/auth/oauth2.go b/models/auth/oauth2.go
index 09d4bfc4ea..bda0668c45 100644
--- a/models/auth/oauth2.go
+++ b/models/auth/oauth2.go
@@ -5,7 +5,6 @@ package auth
import (
"context"
- "crypto/sha256"
"encoding/base32"
"encoding/base64"
"fmt"
@@ -18,6 +17,7 @@ import (
"code.gitea.io/gitea/modules/util"
uuid "github.com/google/uuid"
+ "github.com/minio/sha256-simd"
"golang.org/x/crypto/bcrypt"
"xorm.io/builder"
"xorm.io/xorm"
diff --git a/models/auth/twofactor.go b/models/auth/twofactor.go
index 5b3a9d011a..751a281f7e 100644
--- a/models/auth/twofactor.go
+++ b/models/auth/twofactor.go
@@ -5,7 +5,6 @@ package auth
import (
"crypto/md5"
- "crypto/sha256"
"crypto/subtle"
"encoding/base32"
"encoding/base64"
@@ -18,6 +17,7 @@ import (
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/util"
+ "github.com/minio/sha256-simd"
"github.com/pquerna/otp/totp"
"golang.org/x/crypto/pbkdf2"
)