summaryrefslogtreecommitdiffstats
path: root/lib/rsa.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2023-04-08 10:26:30 -0400
committersiddharth ravikumar <s@ricketyspace.net>2023-04-08 10:26:50 -0400
commit695940622dd6dd9d231d3e0d7c987176043ed6c8 (patch)
tree10dd22108996ce0fcf6a13cb0ab06b777825bba3 /lib/rsa.go
parentaa21a7d5905756e77d0d814df1182266cbfc2596 (diff)
lib: fix `RSAPub.E`
Return `e`.
Diffstat (limited to 'lib/rsa.go')
-rw-r--r--lib/rsa.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rsa.go b/lib/rsa.go
index 87b7447..772b898 100644
--- a/lib/rsa.go
+++ b/lib/rsa.go
@@ -139,7 +139,7 @@ func (r *RSAPub) Encrypt(msg []byte) []byte {
}
func (r *RSAPub) E() *big.Int {
- return r.n
+ return r.e
}
func (r *RSAPub) N() *big.Int {