CoreFiles by mySites.guru
ES256K.php38 lines, 627 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
ec25a5d94c5d115e95a8747fe4b0648e
sha1
52f8cd406722ad8594bd8d2b07d01df6eeb15ceb
sha256
ebad678ca44c276ef7bff5f21325a989bd1a86dd0029a80977b67ab1467cb1e1
<?php

declare(strict_types=1);

namespace Cose\Algorithm\Signature\ECDSA;

use Cose\Key\Ec2Key;
use const OPENSSL_ALGO_SHA256;

final class ES256K extends ECDSA
{
    public const ID = -47;

    public static function create(): self
    {
        return new self();
    }

    public static function identifier(): int
    {
        return self::ID;
    }

    protected function getHashAlgorithm(): int
    {
        return OPENSSL_ALGO_SHA256;
    }

    protected function getCurve(): int
    {
        return Ec2Key::CURVE_P256K;
    }

    protected function getSignaturePartLength(): int
    {
        return 64;
    }
}

The same content is in 9 releases, Joomla 6.2.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.