public function testHmacSha1_again() { Braintree\Configuration::privateKey(str_repeat(chr(0xaa), 80)); $message = 'Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data'; $d = Braintree\Digest::_hmacSha1($message, Braintree\Configuration::privateKey()); $this->assertEquals('e8e99d0f45237d786d6bbaa7965c7808bbff1a91', $d); }
/** * @ignore */ private function _hash($string) { return Digest::hexDigestSha1($this->_config->privateKey(), $string); }