|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICipherHTTP
The main interface for cryptography functions
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] data)
Decrypts data in a single-part operation, or finishes a
multiple-part operation. |
byte[] |
encrypt(byte[] data)
Encrypts data in a single-part operation, or finishes a
multiple-part operation. |
void |
initDecryptMode(Key key)
Generates a Cipher object that implements the specified transformation, initializes cipher vector and initializes
cipher to decryption mode with a key and a set of algorithm parameters. |
void |
initEncryptMode(Key key)
Generates a Cipher object that implements the specified transformation, initializes cipher vector and initializes
cipher to encryption mode with a key and a set of algorithm parameters. |
| Method Detail |
|---|
void initEncryptMode(Key key)
transformation, initializes cipher vector and initializes
cipher to encryption mode with a key and a set of algorithm parameters.
key - the encryption key
HDIVException - if there is an initialization error.void initDecryptMode(Key key)
transformation, initializes cipher vector and initializes
cipher to decryption mode with a key and a set of algorithm parameters.
key - the encryption key
HDIVException - if there is an initialization error.byte[] encrypt(byte[] data)
data in a single-part operation, or finishes a
multiple-part operation. The data is encrypted depending on how this cipher
was initialized.
The bytes in the input buffer, and any input bytes that may have been buffered during a previous update operation, are processed, with padding (if requested) being applied. The result is stored in a new buffer.
if any exception is thrown, this cipher object may need to be reset before it can be used again.
data - The input buffer to encrypt
byte[] decrypt(byte[] data)
data in a single-part operation, or finishes a
multiple-part operation. The data is decrypted depending on how this cipher
was initialized.
The bytes in the input buffer, and any input bytes that may have been buffered during a previous update operation, are processed, with padding (if requested) being applied. The result is stored in a new buffer.
if any exception is thrown, this cipher object may need to be reset before it can be used again.
data - The input buffer to decrypt
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||