Quadcap Embeddable Database

com.quadcap.crypto.RSAPublicKey Class Reference

Inheritance diagram for com.quadcap.crypto.RSAPublicKey:

com.quadcap.crypto.RSAKey com.quadcap.crypto.PublicKey com.quadcap.crypto.Key com.quadcap.crypto.Key List of all members.

Detailed Description

RSA Public key implementation.

Author:
Stan Bailes

Definition at line 52 of file RSAPublicKey.java.

Public Member Functions

 RSAPublicKey ()
 Default constructor.

void init (String rep)
 Construct from simple text representation.

String toString ()
 Convert to simple text representation.

String getText ()
 Return the textual identifier associated with this key.

void f (ByteBuffer plain, ByteBuffer encrypted)
 Encrypt a buffer.

BigInteger engine (BigInteger m)
 A single encryption operation for m < n.


Constructor & Destructor Documentation

com.quadcap.crypto.RSAPublicKey.RSAPublicKey  ) 
 

Default constructor.

Definition at line 56 of file RSAPublicKey.java.


Member Function Documentation

BigInteger com.quadcap.crypto.RSAPublicKey.engine BigInteger  m  )  [virtual]
 

A single encryption operation for m < n.

Implements com.quadcap.crypto.RSAKey.

Definition at line 90 of file RSAPublicKey.java.

References com.quadcap.crypto.RSAPublicKey.engine().

Referenced by com.quadcap.crypto.RSAPublicKey.engine(), and com.quadcap.crypto.RSAPublicKey.f().

void com.quadcap.crypto.RSAPublicKey.f ByteBuffer  plain,
ByteBuffer  encrypted
 

Encrypt a buffer.

Implements com.quadcap.crypto.PublicKey.

Definition at line 83 of file RSAPublicKey.java.

References com.quadcap.crypto.RSAPublicKey.engine(), and com.quadcap.crypto.RSAPublicKey.f().

Referenced by com.quadcap.crypto.RSAPublicKey.f().

String com.quadcap.crypto.RSAPublicKey.getText  ) 
 

Return the textual identifier associated with this key.

Implements com.quadcap.crypto.PublicKey.

Definition at line 76 of file RSAPublicKey.java.

void com.quadcap.crypto.RSAPublicKey.init String  rep  ) 
 

Construct from simple text representation.

Implements com.quadcap.crypto.PublicKey.

Definition at line 61 of file RSAPublicKey.java.

References com.quadcap.crypto.RSAPublicKey.init().

Referenced by com.quadcap.crypto.RSAPrivateKey.getPublicKey(), com.quadcap.crypto.RSAPublicKey.init(), and com.quadcap.crypto.KeyFactory.readPublicKey().

String com.quadcap.crypto.RSAPublicKey.toString  ) 
 

Convert to simple text representation.

Implements com.quadcap.crypto.PublicKey.

Definition at line 69 of file RSAPublicKey.java.