com.caucho.quercus.lib.mcrypt
Class Mcrypt

java.lang.Object
  extended by com.caucho.quercus.lib.mcrypt.Mcrypt

public class Mcrypt
extends java.lang.Object

Encryption class


Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

deinit

public boolean deinit()
Uninitialize data.


decrypt

public byte[] decrypt(byte[] data)
Encrypts data.


encrypt

public byte[] encrypt(byte[] data)
Encrypts data.


get_block_size

public int get_block_size()
Returns the block size.


get_algorithms_name

public java.lang.String get_algorithms_name()
Returns the initialization vector size.


get_iv_size

public int get_iv_size()
Returns the initialization vector size.


get_supported_key_sizes

public Value get_supported_key_sizes()
Returns the supported key sizes


get_key_size

public int get_key_size()
Returns the maximum key size in bytes.


get_modes_name

public java.lang.String get_modes_name()
Returns the initialization vector size.


init

public int init(byte[] keyBytesArg,
                byte[] iv)
Initialize the crypt.


is_block_algorithm

public boolean is_block_algorithm()
Returns true for block algorithms


is_block_algorithm_mode

public boolean is_block_algorithm_mode()
Returns true for block algorithms


is_block_mode

public boolean is_block_mode()
Returns true for block algorithms


close

public void close()
Closes the mcrypt.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object