public class Mcrypt
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the mcrypt.
|
byte[] |
decrypt(byte[] data)
Encrypts data.
|
boolean |
deinit()
Uninitialize data.
|
byte[] |
encrypt(byte[] data)
Encrypts data.
|
java.lang.String |
get_algorithms_name()
Returns the initialization vector size.
|
int |
get_block_size()
Returns the block size.
|
int |
get_iv_size()
Returns the initialization vector size.
|
int |
get_key_size()
Returns the maximum key size in bytes.
|
java.lang.String |
get_modes_name()
Returns the initialization vector size.
|
Value |
get_supported_key_sizes()
Returns the supported key sizes
|
int |
init(byte[] keyBytesArg,
byte[] iv)
Initialize the crypt.
|
boolean |
is_block_algorithm_mode()
Returns true for block algorithms
|
boolean |
is_block_algorithm()
Returns true for block algorithms
|
boolean |
is_block_mode()
Returns true for block algorithms
|
java.lang.String |
toString() |
public boolean deinit()
public byte[] decrypt(byte[] data)
public byte[] encrypt(byte[] data)
public int get_block_size()
public java.lang.String get_algorithms_name()
public int get_iv_size()
public Value get_supported_key_sizes()
public int get_key_size()
public java.lang.String get_modes_name()
public int init(byte[] keyBytesArg, byte[] iv)
public boolean is_block_algorithm()
public boolean is_block_algorithm_mode()
public boolean is_block_mode()
public void close()
public java.lang.String toString()
toString
in class java.lang.Object