You are here

function real_aes_load_library in Real AES 7.2

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

Load a 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 39
Library loader for the Defuse PHP-encryption library.

Code

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