original_string: public function computeHash($publicKeyDER, $hashAlgorithm)
      {
          try {
              return (new CryptoVirgilHash($hashAlgorithm))->hash($publicKeyDER);
          } catch (Exception $exception) {
              throw new PublicKeyHashComputationException($exception->getMessage(), $exception->getCode());
          }
      }
code: public function computeHash($publicKeyDER, $hashAlgorithm)
      {
          try {
              return (new CryptoVirgilHash($hashAlgorithm))->hash($publicKeyDER);
          } catch (Exception $exception) {
              throw new PublicKeyHashComputationException($exception->getMessage(), $exception->getCode());
          }
      }
code_tokens: public function computeHash ( $ publicKeyDER , $ hashAlgorithm ) { try { return ( new CryptoVirgilHash ( $ hashAlgorithm ) ) -> hash ( $ publicKeyDER ) ; } catch ( Exception $ exception ) { throw new PublicKeyHashComputationException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
docstring: Calculates key hash by the hash algorithm.
  
  @param string  $publicKeyDER  DER public key value
  @param integer $hashAlgorithm Hash algorithm
  
  @return string
  
  @throws PublicKeyHashComputationException
docstring_tokens: Calculates key hash by the hash algorithm .