|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CryptoAgent
| Field Summary | |
|---|---|
static int |
BIG_INT_SEED_BITS
the number of bits used to represent p and q |
static int |
E_VALUE
the value of the encryption exponent (aka e) |
static int |
PRIME_CHECK_PRECISION
the certainty that a number is prime. |
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] cipher)
Decrypt cipher using your private key (_d). |
byte[] |
encrypt(CryptoPublicKey key,
byte[] message)
Encrypt the given message using the provided public key. |
CryptoPublicKey |
getPublicKey()
Return a CryptoPublicKey that contains your N and E values. |
| Field Detail |
|---|
static final int BIG_INT_SEED_BITS
static final int PRIME_CHECK_PRECISION
static final int E_VALUE
| Method Detail |
|---|
CryptoPublicKey getPublicKey()
byte[] decrypt(byte[] cipher)
cipher - an array of bytes representing an encrypted message.
byte[] encrypt(CryptoPublicKey key,
byte[] message)
key - the public key to be used for the
encryption.message - the message to be encrypted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||