ParagonIE_Sodium_Core32_Ed25519::seed_keypair() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core32_Ed25519::seed_keypair( $pk, $sk, $seed );

Parameters

$pk
( string ) required
$sk
( string ) required
$seed
( string ) required

Returns

string

Source

File name: wordpress/wp-includes/sodium_compat/src/Core32/Ed25519.php
Lines:

1 to 11 of 11
    public static function seed_keypair(&$pk, &$sk, $seed)
    {
        if (self::strlen($seed) !== self::SEED_BYTES) {
            throw new RangeException('crypto_sign keypair seed must be 32 bytes long');
        }

        
/** @var string $pk */
        $pk = self::publickey_from_secretkey($seed);
        $sk = $seed . $pk;
        return $sk;
    }
 

 View on GitHub View on Trac