You are here

protected static function LockrAes128CtrSha256KeyWrapper::hmac in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 vendor/lockr/lockr/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php \Lockr\KeyWrapper\LockrAes128CtrSha256KeyWrapper::hmac()
3 calls to LockrAes128CtrSha256KeyWrapper::hmac()
LockrAes128CtrSha256KeyWrapper::decrypt in vendor/lockr/lockr-client/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php
Decrypt the given ciphertext using encoded.
LockrAes128CtrSha256KeyWrapper::encrypt in vendor/lockr/lockr-client/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php
Encrypt the given plaintext.
LockrAes128CtrSha256KeyWrapper::reencrypt in vendor/lockr/lockr-client/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php
Encrypt the given plaintext using the same initial state as defined by encoded.

File

vendor/lockr/lockr-client/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php, line 112

Class

LockrAes128CtrSha256KeyWrapper

Namespace

Lockr\KeyWrapper

Code

protected static function hmac($data, $key) {
  return hash_hmac('sha256', $data, $key, true);
}