public function publicKeyToDer($publicKey)
    {
        try {
            return CryptoVirgilKeyPair::publicKeyToDER($publicKey);
        } catch (Exception $exception) {
            throw new PublicKeyToDerConvertingException($exception->getMessage(), $exception->getCode());
        }
    }
public function publicKeyToDer($publicKey)
    {
        try {
            return CryptoVirgilKeyPair::publicKeyToDER($publicKey);
        } catch (Exception $exception) {
            throw new PublicKeyToDerConvertingException($exception->getMessage(), $exception->getCode());
        }
    }
public function publicKeyToDer ( $ publicKey ) { try { return CryptoVirgilKeyPair :: publicKeyToDER ( $ publicKey ) ; } catch ( Exception $ exception ) { throw new PublicKeyToDerConvertingException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Converts public key to DER format.

@param string $publicKey

@return string

@throws PublicKeyToDerConvertingException
Converts public key to DER format .