|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is implemented by keys which handle encryption and decryption of single blocks of data.
| Method Summary | |
int |
cipherBlockSize()
Returns the size of the blocks that can be decrypted in one call to decrypt(). |
void |
decrypt(byte[] source,
int i,
byte[] dest,
int j)
Decrypt one block of data. |
void |
encrypt(byte[] source,
int i,
byte[] dest,
int j)
Encrypt one block of data. |
int |
plainBlockSize()
Returns the size of the blocks that can be encrypted in one call to encrypt(). |
| Methods inherited from interface org.logi.crypto.keys.Key |
getAlgorithm, getFingerprint, getFingerprint, getSize, hashCode, isPrivate, matches, matchFingerprint, matchFingerprint |
| Methods inherited from interface org.logi.crypto.PrettyPrintable |
prettyPrint, prettyPrint |
| Method Detail |
public int plainBlockSize()
public int cipherBlockSize()
public void encrypt(byte[] source,
int i,
byte[] dest,
int j)
source starting at offset i and
ciphertext is written to dest, starting at
offset j.
The amount of data read and written will match the values returned
by plainBlockSize() and cipherBlockSize().
public void decrypt(byte[] source,
int i,
byte[] dest,
int j)
source starting at offset i and
plaintext is written to dest, starting at
offset j.
The amount of data read and written will match the values returned
by cipherBlockSize() and plainBlockSize().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||