src/PhpHash.php
private function getContext()
    {
        if (!$this->context) {
            $key = isset($this->options['key']) ? $this->options['key'] : null;
            $this->context = hash_init(
                $this->algo,
                $key ? HASH_HMAC : 0,
                $key
            );
        }

        return $this->context;
    }
private function getContext()
    {
        if (!$this->context) {
            $key = isset($this->options['key']) ? $this->options['key'] : null;
            $this->context = hash_init(
                $this->algo,
                $key ? HASH_HMAC : 0,
                $key
            );
        }

        return $this->context;
    }
private function getContext ( ) { if ( ! $ this -> context ) { $ key = isset ( $ this -> options [ 'key' ] ) ? $ this -> options [ 'key' ] : null ; $ this -> context = hash_init ( $ this -> algo , $ key ? HASH_HMAC : 0 , $ key ) ; } return $ this -> context ; }
Get a hash context or create one if needed

@return resource|\HashContext
Get a hash context or create one if needed