Fix coding standards error.

This commit is contained in:
mark_story 2013-09-01 21:44:45 -04:00
parent 95ad5f5c78
commit 13b870d7e1

View file

@ -319,7 +319,7 @@ class Security {
$ivSize = mcrypt_get_iv_size($algorithm, $mode); $ivSize = mcrypt_get_iv_size($algorithm, $mode);
$iv = mcrypt_create_iv($ivSize, MCRYPT_DEV_URANDOM); $iv = mcrypt_create_iv($ivSize, MCRYPT_DEV_URANDOM);
$ciphertext = $iv . mcrypt_encrypt($algorithm, $key, $plain, $mode, $iv); $ciphertext = $iv . mcrypt_encrypt($algorithm, $key, $plain, $mode, $iv);
$hmac = hash_hmac('sha256', $ciphertext, $key); $hmac = hash_hmac('sha256', $ciphertext, $key);
return $hmac . $ciphertext; return $hmac . $ciphertext;
} }