ParagonIE_Sodium_Compat::crypto_kx_publickey

Advertisement

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_kx_publickey( string $kp )

Parameters Parameters

$kp

(string) (Required)

Return Return

(string)

Source Source

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

    public static function crypto_kx_publickey($kp)
    {
        return ParagonIE_Sodium_Core_Util::substr(
            $kp,
            self::CRYPTO_KX_SECRETKEYBYTES,
            self::CRYPTO_KX_PUBLICKEYBYTES
        );
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.