You are here

private static function LockrAes128CtrSha256KeyWrapper::hmac in Lockr 7.3

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

File

vendor/lockr/lockr/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php, line 96

Class

LockrAes128CtrSha256KeyWrapper

Namespace

Lockr\KeyWrapper

Code

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