public function sign($content, $privateKey)
    {
        try {
            return (new CryptoVirgilSigner($this->hashAlgorithm))->sign($content, $privateKey);
        } catch (Exception $exception) {
            throw new ContentSigningException($exception->getMessage(), $exception->getCode());
        }
    }
public function sign($content, $privateKey)
    {
        try {
            return (new CryptoVirgilSigner($this->hashAlgorithm))->sign($content, $privateKey);
        } catch (Exception $exception) {
            throw new ContentSigningException($exception->getMessage(), $exception->getCode());
        }
    }
public function sign ( $ content , $ privateKey ) { try { return ( new CryptoVirgilSigner ( $ this -> hashAlgorithm ) ) -> sign ( $ content , $ privateKey ) ; } catch ( Exception $ exception ) { throw new ContentSigningException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Sign content with a private key.

@param string $content
@param string $privateKey

@return string

@throws ContentSigningException
Sign content with a private key .