From aa21a7d5905756e77d0d814df1182266cbfc2596 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sun, 27 Nov 2022 12:09:25 -0500 Subject: lib: add `RSAPub.E` function Returns `e`. --- lib/rsa.go | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- cgit v1.2.3