You are here

public static function ParagonIE_Sodium_Crypto::sign_detached in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Crypto.php \ParagonIE_Sodium_Crypto::sign_detached()

Detached Ed25519 signature.

@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_Crypto::sign_detached()
ParagonIE_Sodium_Compat::crypto_sign_detached in vendor/paragonie/sodium_compat/src/Compat.php
Calculate the Ed25519 signature of a message and return ONLY the signature.

File

vendor/paragonie/sodium_compat/src/Crypto.php, line 1602

Class

ParagonIE_Sodium_Crypto
Class ParagonIE_Sodium_Crypto

Code

public static function sign_detached($message, $sk) {
  return ParagonIE_Sodium_Core_Ed25519::sign_detached($message, $sk);
}