|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.optional.sec.rsa.RSAPubKey
public class RSAPubKey
A RSA public key with a public exponent and a modulus.
Constructor Summary | |
---|---|
RSAPubKey(BigInt modulus,
BigInt exponent)
Construct a new RSA public key by the given modulus and public exponent. |
Method Summary | |
---|---|
BigInt |
encryptPlain(BigInt plain)
Calculates the plain encrpyt operation x^pubExp . |
BigInt |
getExponent()
|
BigInt |
getModulus()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSAPubKey(BigInt modulus, BigInt exponent)
modulus
- The RSA modulus.exponent
- The public exponent.Method Detail |
---|
public BigInt getModulus()
public BigInt getExponent()
public BigInt encryptPlain(BigInt plain)
x^pubExp
. This operation may additionally
be used on a padded message digest to verify signatures.
plain
- The plain text, which is usually subject to
an appropriate padding scheme.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |