public static function ParagonIE_Sodium_Core_Ed25519::sign in Automatic Updates 8
Same name and namespace in other branches
- 7 vendor/paragonie/sodium_compat/src/Core/Ed25519.php \ParagonIE_Sodium_Core_Ed25519::sign()
@internal You should not use this directly from another application
Parameters
string $message:
string $sk:
Return value
string
Throws
SodiumException
TypeError
1 call to ParagonIE_Sodium_Core_Ed25519::sign()
- ParagonIE_Sodium_Crypto::sign in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - Attached Ed25519 signature. (Returns a signed message.)
File
- vendor/
paragonie/ sodium_compat/ src/ Core/ Ed25519.php, line 170
Class
- ParagonIE_Sodium_Core_Ed25519
- Class ParagonIE_Sodium_Core_Ed25519
Code
public static function sign($message, $sk) {
/** @var string $signature */
$signature = self::sign_detached($message, $sk);
return $signature . $message;
}