protected static function LockrAes256CbcSha256RawKeyWrapper::hmac in Lockr 7.3
2 calls to LockrAes256CbcSha256RawKeyWrapper::hmac()
- LockrAes256CbcSha256RawKeyWrapper::decrypt in vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAes256CbcSha256RawKeyWrapper.php - Decrypt the given ciphertext.
- LockrAes256CbcSha256RawKeyWrapper::doEncrypt in vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAes256CbcSha256RawKeyWrapper.php
File
- vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAes256CbcSha256RawKeyWrapper.php, line 95
Class
Namespace
Lockr\KeyWrapperCode
protected static function hmac($iv, $ciphertext, $key) {
$data = self::PREFIX . self::METHOD . $iv . $ciphertext;
return hash_hmac('sha256', $data, $key, true);
}