ParagonIE_Sodium_Compat::crypto_kx_keypair

Advertisement

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_kx_keypair()

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Compat.php

    public static function crypto_kx_keypair()
    {
        $sk = self::randombytes_buf(self::CRYPTO_KX_SECRETKEYBYTES);
        $pk = self::crypto_scalarmult_base($sk);
        return $sk . $pk;
    }

Advertisement

Advertisement

Leave a Reply