From 695940622dd6dd9d231d3e0d7c987176043ed6c8 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sat, 8 Apr 2023 10:26:30 -0400 Subject: lib: fix `RSAPub.E` Return `e`. --- lib/rsa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3