|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cipher
Wrapper for a cryptographic cipher, used either for encryption or decryption.
| Nested Class Summary | |
|---|---|
static class |
Cipher.Mode
|
| Method Summary | |
|---|---|
int |
getBlockSize()
|
int |
getIVSize()
|
void |
init(Cipher.Mode mode,
byte[] key,
byte[] iv)
Initialize the cipher for encryption or decryption with the given private key and initialization vector |
void |
update(byte[] input,
int inputOffset,
int inputLen)
Performs in-place encryption or decryption on the given data. |
| Method Detail |
|---|
int getBlockSize()
int getIVSize()
void init(Cipher.Mode mode,
byte[] key,
byte[] iv)
mode - whether this instance wil encrypt or decryptkey - the key for the cipheriv - initialization vector
void update(byte[] input,
int inputOffset,
int inputLen)
input - the subjectinputOffset - offset at which to startinputLen - number of bytes starting at inputOffset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||