diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-11-27 12:09:25 -0500 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-11-27 12:09:50 -0500 |
commit | aa21a7d5905756e77d0d814df1182266cbfc2596 (patch) | |
tree | 38973d90f3acfcf9516ee1f30348f09cfa95a269 /lib | |
parent | 937f11b380ae0b8b73a7bb1a914b85cc8ea026e5 (diff) |
lib: add `RSAPub.E` function
Returns `e`.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rsa.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |