Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
C
D
E
G
I
K
L
M
P
R
S
T
W
C
close()
- Method in class
DataLoader
Close the streams manipulated by a DataLoader.
D
DataLoader
- class
DataLoader
.
DataLoader is an IO interface used by RSA to read and write clear and encrypted data.
DataLoader(String, String)
- Constructor for class
DataLoader
Create a DataLoader defined by an file from which to read and a file in which to write.
decrypt(BigInteger, BigInteger, BigInteger)
- Static method in class
RSA
Decrypt a message with RSA.
E
encrypt(BigInteger, BigInteger, BigInteger)
- Static method in class
RSA
Encrypt a message with RSA.
G
gcd(BigInteger, BigInteger)
- Static method in class
Math
Compute the greatest common divisor (gcd) of two integers.
I
isProbablePrime(BigInteger, int)
- Static method in class
Math
Check if an integer is prime.
K
KeyLoader
- class
KeyLoader
.
KeyLoader is an IO interface used by RSA to load and save the keys and modulus associated with one user.
KeyLoader(String)
- Constructor for class
KeyLoader
Create a KeyLoader for a given user.
keys()
- Static method in class
RSA
Generate a pair of private and public keys, and a modulus.
L
loadModulus()
- Method in class
KeyLoader
loadPrivateKey()
- Method in class
KeyLoader
loadPublicKey()
- Method in class
KeyLoader
M
main(String[])
- Static method in class
RSA
Crypt/Decrypt a file, or generate keys for a user.
main(String[])
- Static method in class
Test
makePrime(int, int)
- Static method in class
Math
Create a large prime integer.
Math
- class
Math
.
An implementation for operations on large integers.
Math()
- Constructor for class
Math
mod4Pow(BigInteger, BigInteger, BigInteger)
- Static method in class
Math
Same as
modPow
.
modInverse(BigInteger, BigInteger)
- Static method in class
Math
Compute the inverse of an integer
a
modulo
n
.
modPow(BigInteger, BigInteger, BigInteger)
- Static method in class
Math
Compute
a
power
e
modulo
n
.
P
polFactors(BigInteger)
- Static method in class
Math
Factorises a large integer.
R
readClearBlock()
- Method in class
DataLoader
Read a block of data from a clear file.
readEncryptedBlock()
- Method in class
DataLoader
Read a block of encrypted data from an encrypted file.
RSA
- class
RSA
.
Program to encrypt and decrypt files using the RSA algorithm.
RSA()
- Constructor for class
RSA
S
saveModulus(BigInteger)
- Method in class
KeyLoader
savePrivateKey(BigInteger)
- Method in class
KeyLoader
savePublicKey(BigInteger)
- Method in class
KeyLoader
SIZE_KEY
- Static variable in class
RSA
T
Test
- class
Test
.
Run tests on classes Math, RSA and KeyLoader.
Test()
- Constructor for class
Test
W
writeClearBlock(BigInteger)
- Method in class
DataLoader
Write a block of clear data to a file.
writeEncryptedBlock(BigInteger)
- Method in class
DataLoader
Write a block of encrypted data to a file.
C
D
E
G
I
K
L
M
P
R
S
T
W
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES