protected static function LockrAes256CbcSha256KeyWrapper::hmac in Lockr 7.2
Same name and namespace in other branches
- 7.3 vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php \Lockr\KeyWrapper\LockrAes256CbcSha256KeyWrapper::hmac()
2 calls to LockrAes256CbcSha256KeyWrapper::hmac()
- LockrAes256CbcSha256KeyWrapper::decrypt in vendor/
lockr/ lockr-client/ src/ KeyWrapper/ LockrAes256CbcSha256KeyWrapper.php - Decrypt the given ciphertext using encoded.
- LockrAes256CbcSha256KeyWrapper::doEncrypt in vendor/
lockr/ lockr-client/ src/ KeyWrapper/ LockrAes256CbcSha256KeyWrapper.php
File
- vendor/
lockr/ lockr-client/ src/ KeyWrapper/ LockrAes256CbcSha256KeyWrapper.php, line 93
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);
}