Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
crypto
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xx network
crypto
Commits
d33bf918
Commit
d33bf918
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Remove rsaBitLength javascript settings. Use the defaults.
parent
557b66d7
No related branches found
No related tags found
Loading
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
signature/rsa/rsaBitLength.go
+0
-4
0 additions, 4 deletions
signature/rsa/rsaBitLength.go
signature/rsa/rsaBitLength_js.go
+0
-33
0 additions, 33 deletions
signature/rsa/rsaBitLength_js.go
with
0 additions
and
37 deletions
signature/rsa/rsaBitLength.go
+
0
−
4
View file @
d33bf918
...
...
@@ -5,10 +5,6 @@
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
// This file is compiled for all architectures except WebAssembly.
//go:build !js || !wasm
// +build !js !wasm
package
rsa
// DefaultRSABitLen is the RSA key length used in the system, in bits.
...
...
This diff is collapsed.
Click to expand it.
signature/rsa/rsaBitLength_js.go
deleted
100644 → 0
+
0
−
33
View file @
557b66d7
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
// This file is only compiled for WebAssembly.
package
rsa
import
(
"fmt"
jww
"github.com/spf13/jwalterweatherman"
)
// DefaultRSABitLen is the RSA key length used in the system, in bits.
//
// WARNING: This bit size is smaller than the minimum recommended bit size of
// 3072. Do not use this in production. Only use it for testing.
//
// FIXME: Once WebAssembly can run in a HTTPS server, this should not be
// necessary and needs to be removed. Do not use this is production.
var
DefaultRSABitLen
=
1024
func
init
()
{
// Print with both jww and fmt to ensure that the message is seen
msg
:=
fmt
.
Sprintf
(
"Using %d-bit RSA key size due to performance issues "
+
"with key generation in WebAssembly. This is not safe and not "
+
"generally compatible"
,
DefaultRSABitLen
)
fmt
.
Println
(
msg
)
jww
.
CRITICAL
.
Print
(
msg
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment