public static function ParagonIE_Sodium_Crypto32::sign in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Crypto32.php \ParagonIE_Sodium_Crypto32::sign()
Attached Ed25519 signature. (Returns a signed message.)
@internal Do not use this directly. Use ParagonIE_Sodium_Compat.
Parameters
string $message:
string $sk:
Return value
string
Throws
SodiumException
TypeError
1 call to ParagonIE_Sodium_Crypto32::sign()
- ParagonIE_Sodium_Compat::crypto_sign in vendor/
paragonie/ sodium_compat/ src/ Compat.php - Returns a signed message. You probably want crypto_sign_detached() instead, which only returns the signature.
File
- vendor/
paragonie/ sodium_compat/ src/ Crypto32.php, line 1617
Class
- ParagonIE_Sodium_Crypto32
- Class ParagonIE_Sodium_Crypto
Code
public static function sign($message, $sk) {
return ParagonIE_Sodium_Core32_Ed25519::sign($message, $sk);
}