protected function calculateMac($payload, $bytes)
    {
        return hash_hmac(
            'sha256', $this->hash($payload['iv'], $payload['value']), $bytes, true
        );
    }
protected function calculateMac($payload, $bytes)
    {
        return hash_hmac(
            'sha256', $this->hash($payload['iv'], $payload['value']), $bytes, true
        );
    }
protected function calculateMac ( $ payload , $ bytes ) { return hash_hmac ( 'sha256' , $ this -> hash ( $ payload [ 'iv' ] , $ payload [ 'value' ] ) , $ bytes , true ) ; }
Calculate the hash of the given payload.

@param  array  $payload
@param  string  $bytes
@return string
Calculate the hash of the given payload .