summaryrefslogtreecommitdiffstats
path: root/lib/rsa_test.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2024-10-14 19:16:11 -0400
committersiddharth ravikumar <s@ricketyspace.net>2024-10-14 19:16:11 -0400
commit32803d4577151e18252c7e2102738b544e99fcbc (patch)
tree5380965064b597ca72cbcc53d2689a27db1325ae /lib/rsa_test.go
parent0bede4cd60eafb508598ba2f6098f1792623f984 (diff)
lib: update `RSAGenKey`
Add `size` argument.
Diffstat (limited to 'lib/rsa_test.go')
-rw-r--r--lib/rsa_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rsa_test.go b/lib/rsa_test.go
index d26ee2c..810d7cc 100644
--- a/lib/rsa_test.go
+++ b/lib/rsa_test.go
@@ -59,7 +59,7 @@ func TestInvMod(t *testing.T) {
}
func TestRSAGenKey(t *testing.T) {
- pair, err := RSAGenKey()
+ pair, err := RSAGenKey(2048)
if err != nil {
t.Errorf("genkey: %v", err)
return
@@ -95,7 +95,7 @@ func TestRSAGenKey(t *testing.T) {
}
func TestRSAEncryptDecrypt(t *testing.T) {
- pair, err := RSAGenKey()
+ pair, err := RSAGenKey(2048)
if err != nil {
t.Errorf("genkey: %v", err)
return