summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/rsa.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rsa.go b/lib/rsa.go
index 24cd709..87b7447 100644
--- a/lib/rsa.go
+++ b/lib/rsa.go
@@ -138,6 +138,10 @@ func (r *RSAPub) Encrypt(msg []byte) []byte {
return c.Bytes()
}
+func (r *RSAPub) E() *big.Int {
+ return r.n
+}
+
func (r *RSAPub) N() *big.Int {
return r.n
}