You are here

public static function ParagonIE_Sodium_Compat::crypto_kx_secretkey in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::crypto_kx_secretkey()

Parameters

string $kp:

Return value

string

Throws

SodiumException

3 calls to ParagonIE_Sodium_Compat::crypto_kx_secretkey()
ParagonIE_Sodium_Compat::crypto_kx_client_session_keys in vendor/paragonie/sodium_compat/src/Compat.php
ParagonIE_Sodium_Compat::crypto_kx_server_session_keys in vendor/paragonie/sodium_compat/src/Compat.php
php72compat.php in vendor/paragonie/sodium_compat/lib/php72compat.php

File

vendor/paragonie/sodium_compat/src/Compat.php, line 1873

Class

ParagonIE_Sodium_Compat

Code

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