|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to Algorithm as random stream
Method Summary | |
void |
setPrivateKey(byte[] k)
Set private key, if any, to algorithm |
void |
setPrivateKeyFromFile(String f)
Set private key, if any, to algorithm from file |
void |
setPublicKey(byte[] k)
Set public or symetric key to algorithm |
void |
setPublicKeyFromFile(String f)
Set public or symetric key to algorithm from file |
void |
setup()
Setup before encryption |
void |
setupKeys()
set up length and new arrays to public and private keys will be implemented by each algorithm |
Methods inherited from interface com.fasteasytrade.JRandTest.IO.RandomStream |
closeInputStream, getFilename, isOpen, openInputStream, readByte, readInt, readLong, setFilename |
Method Detail |
public void setupKeys()
will be implemented by each algorithm
public void setPublicKeyFromFile(String f)
f
- file name with public or symetric keypublic void setPublicKey(byte[] k)
k
- byte array of public or symetric keypublic void setPrivateKeyFromFile(String f)
f
- file name with private keypublic void setPrivateKey(byte[] k)
k
- byte array of private keypublic void setup()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |