CoreFiles by mySites.guru
SignatureAlgorithm.php28 lines, 714 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
1689c6e0c025e794e3c486b50fdbe4d0
sha1
aa40d4fade8d03d7f0ee9e1514508145d29cf719
sha256
5fa99d8c4d8dcd70b0ff1173cde7269a3b4aa69ef064ab8034c6428af7c84fae
<?php

declare(strict_types=1);

namespace Jose\Component\Signature\Algorithm;

use Jose\Component\Core\Algorithm;
use Jose\Component\Core\JWK;

interface SignatureAlgorithm extends Algorithm
{
    /**
     * Sign the input.
     *
     * @param JWK $key The private key used to sign the data
     * @param string $input The input
     */
    public function sign(JWK $key, string $input): string;

    /**
     * Verify the signature of data.
     *
     * @param JWK $key The private key used to sign the data
     * @param non-empty-string $input The input
     * @param non-empty-string $signature The signature to verify
     */
    public function verify(JWK $key, string $input, string $signature): bool;
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.