ParagonIE_Sodium_Core32_Ed25519::secretkey() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core32_Ed25519::secretkey( $keypair );

Parameters

$keypair
( string ) required

Returns

string

Source

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

1 to 7 of 7
    public static function secretkey($keypair)
    {
        if (self::strlen($keypair) !== self::KEYPAIR_BYTES) {
            throw new RangeException('crypto_sign keypair must be 96 bytes long');
        }
        return self::substr($keypair, 0, 64);
    }
 

 View on GitHub View on Trac