sodium_crypto_sign_open

The timeline below displays how wordpress function sodium_crypto_sign_open has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_sign_open()
 * @param string $signedMessage
 * @param string $public_key
 * @return string|bool
 */
function sodium_crypto_sign_open($signedMessage, $public_key)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $public_key);
    } catch (Error $ex) {
        return false;
    } catch (Exception $ex) {
        return false;
    }
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_sign_open()
 * @param string $signedMessage
 * @param string $pk
 * @return string|bool
 */
function sodium_crypto_sign_open($signedMessage, $pk)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
    } catch (Error $ex) {
        return false;
    } catch (Exception $ex) {
        return false;
    }
}