public static function ParagonIE_Sodium_Core32_Ed25519::sign in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Core32/Ed25519.php \ParagonIE_Sodium_Core32_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_Core32_Ed25519::sign()
- ParagonIE_Sodium_Crypto32::sign in vendor/
paragonie/ sodium_compat/ src/ Crypto32.php - Attached Ed25519 signature. (Returns a signed message.)
File
- vendor/
paragonie/ sodium_compat/ src/ Core32/ Ed25519.php, line 172
Class
- ParagonIE_Sodium_Core32_Ed25519
- Class ParagonIE_Sodium_Core32_Ed25519
Code
public static function sign($message, $sk) {
/** @var string $signature */
$signature = self::sign_detached($message, $sk);
return $signature . $message;
}