You are here

function real_aes_load_library in Real AES 7

Same name and namespace in other branches
  1. 7.2 real_aes.module \real_aes_load_library()

Load the defuse php encryption library.

Return value

bool TRUE if the library could be loaded, FALSE otherwise.

2 calls to real_aes_load_library()
_real_aes_authenticated_aes_check_requirements in plugins/encryption_methods/authenticated_aes.inc
Callback to check if Real AES is enabled, and the library has been installed.
_real_aes_encryption_methods_authenticated_aes in plugins/encryption_methods/authenticated_aes.inc
Callback for Encrypt implementation: Authenticated AES.
1 string reference to 'real_aes_load_library'
_real_aes_authenticated_aes_check_requirements in plugins/encryption_methods/authenticated_aes.inc
Callback to check if Real AES is enabled, and the library has been installed.

File

./real_aes.module, line 30
Library loader for the Defuse PHP-encryption library.

Code

function real_aes_load_library() {
  $library = libraries_load('php-encryption');
  return !empty($library['loaded']);
}