You are here

public static function ParagonIE_Sodium_Crypto32::sign_verify_detached in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/paragonie/sodium_compat/src/Crypto32.php \ParagonIE_Sodium_Crypto32::sign_verify_detached()

Verify a detached signature of a given message and public key.

@internal Do not use this directly. Use ParagonIE_Sodium_Compat.

Parameters

string $signature:

string $message:

string $pk:

Return value

bool

Throws

SodiumException

TypeError

1 call to ParagonIE_Sodium_Crypto32::sign_verify_detached()
ParagonIE_Sodium_Compat::crypto_sign_verify_detached in vendor/paragonie/sodium_compat/src/Compat.php
Verify the Ed25519 signature of a message.

File

vendor/paragonie/sodium_compat/src/Crypto32.php, line 1650

Class

ParagonIE_Sodium_Crypto32
Class ParagonIE_Sodium_Crypto

Code

public static function sign_verify_detached($signature, $message, $pk) {
  return ParagonIE_Sodium_Core32_Ed25519::verify_detached($signature, $message, $pk);
}