WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_box_seed_keypair() public WP 1.0

Generate an X25519 keypair from a seed.

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_box_seed_keypair( $seed );
$seed(string) (required)
-

Code of ParagonIE_Sodium_Compat::crypto_box_seed_keypair() WP 5.8.2

public static function crypto_box_seed_keypair($seed)
{
    /* Type checks: */
    ParagonIE_Sodium_Core_Util::declareScalarType($seed, 'string', 1);

    if (self::useNewSodiumAPI()) {
        return (string) sodium_crypto_box_seed_keypair($seed);
    }
    if (self::use_fallback('crypto_box_seed_keypair')) {
        return (string) call_user_func('\\Sodium\\crypto_box_seed_keypair', $seed);
    }
    if (PHP_INT_SIZE === 4) {
        return ParagonIE_Sodium_Crypto32::box_seed_keypair($seed);
    }
    return ParagonIE_Sodium_Crypto::box_seed_keypair($seed);
}