summaryrefslogtreecommitdiffstats
path: root/challenge/c39.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-25 13:03:23 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-25 13:03:23 -0500
commit94919c9b1c6b1aff4e0a0aa14db987031bac5530 (patch)
treea09b9a55c4a090712396243570f50094857c27ef /challenge/c39.go
parent8530733db8df0726007a1a2730b820c2e05fdcbb (diff)
challenge: update `C39`
Immediately return when rsa key generation fails.
Diffstat (limited to 'challenge/c39.go')
-rw-r--r--challenge/c39.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/challenge/c39.go b/challenge/c39.go
index e4c0bf7..6261c13 100644
--- a/challenge/c39.go
+++ b/challenge/c39.go
@@ -13,6 +13,7 @@ func C39() {
rsa, err := lib.RSAGenKey()
if err != nil {
fmt.Printf("gen key failed: %v", err)
+ return
}
msg := []byte("42")