summaryrefslogtreecommitdiffstats
path: root/models/publickey.go
diff options
context:
space:
mode:
authorYixin Hao <haoyixin@live.cn>2015-08-21 15:29:43 +0800
committerYixin Hao <haoyixin@live.cn>2015-08-21 15:29:43 +0800
commit5f25553b0db75a750c6bc2d4d355c9f10d315fc1 (patch)
tree3544a89aea7eac71c09cf3867cd27558cf35a88f /models/publickey.go
parent50cd67cd4bf9e03a555cbf44bcd76ca12a315b97 (diff)
downloadgitea-5f25553b0db75a750c6bc2d4d355c9f10d315fc1.tar.gz
gitea-5f25553b0db75a750c6bc2d4d355c9f10d315fc1.zip
Modify minimumKeySize of RSA to 1024 for old keys.
Diffstat (limited to 'models/publickey.go')
-rw-r--r--models/publickey.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/publickey.go b/models/publickey.go
index e5516526bc..14720f24df 100644
--- a/models/publickey.go
+++ b/models/publickey.go
@@ -123,7 +123,7 @@ var minimumKeySizes = map[string]int{
"(NTRU)": 1087,
"(MCE)": 1702,
"(McE)": 1702,
- "(RSA)": 2048,
+ "(RSA)": 1024,
"(DSA)": 1024,
}