You are here

protected static function LockrAes256CbcSha256KeyWrapper::hmac in Lockr 7.3

Same name and namespace in other branches
  1. 7.2 vendor/lockr/lockr-client/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php \Lockr\KeyWrapper\LockrAes256CbcSha256KeyWrapper::hmac()
2 calls to LockrAes256CbcSha256KeyWrapper::hmac()
LockrAes256CbcSha256KeyWrapper::decrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php
Decrypt the given ciphertext.
LockrAes256CbcSha256KeyWrapper::doEncrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php

File

vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php, line 93

Class

LockrAes256CbcSha256KeyWrapper

Namespace

Lockr\KeyWrapper

Code

protected static function hmac($iv, $ciphertext, $key) {
  $data = self::PREFIX . self::METHOD . $iv . $ciphertext;
  return hash_hmac('sha256', $data, $key, true);
}