Smart.Framework Logo

final class \SmartCryptoEddsaSodium
{ } ::

Class: SmartCryptoEddsaSodium - provides PHP LibSodium based EdDSA crypto implementation
Supports: Ed25519


class Methods

public static function isAvailable ( ) {} :: BOOL
@return: {BOOL} TRUE if available, FALSE if not
Verifies if LibSodium extension is available and supports the EdDSA Ed25519
public static function ed25519NewKeypair ( string $secret = null ) {} :: ARRAY
@return: {ARRAY} [ err, mode, encoding, secret, privKey, pubKey ]
Generates a New EdDSA Ed25519 Key Pair: Private Key and Public Key
public static function ed25519SignData ( string $privateKey, string $publicKey, string $message ) {} :: ARRAY
@return: {ARRAY} [ err, mode, signatureB64 ]
@param: {STRING} $privateKey: The Private Key (Base64)
@param: {STRING} $publicKey: The Public Key (Base64)
@param: {STRING} $message: The Message to be Signed
Sign a Message using EdDSA Ed25519
public static function ed25519VerifySignedData ( string $publicKey, string $signatureB64, string $message ) {} :: ARRAY
@return: {ARRAY} [ err, mode, verifyResult ] ; the verifyResult must be TRUE if verified, otherwise may return NULL or INTEGER
@param: {STRING} $publicKey: The Public Key (Base64)
@param: {STRING} $signatureB64: The Signature (Base64)
@param: {STRING} $message: The Message to be verified with the signature
Verify the Signature of a previous Message using EdDSA Ed25519

class Properties


class Constants



documentation generated on: 2026-01-14 01:50:49 +0000


Smart.Framework © 2009-2026 unix-world.org