CoreFiles by mySites.guru
ES512.php38 lines, 626 bytes, from Joomla_6.2.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 6.2.0-rc1
md5
a80e4f523dd09042cc9d06aa391cdb9e
sha1
dfce98b1594859b02439a7f5dc3d4fdbf631e405
sha256
b06d53356d4bee5ddec8366c030e3336b7b0d5b83a5112ed3b6fe2438b5bc6cd
<?php

declare(strict_types=1);

namespace Cose\Algorithm\Signature\ECDSA;

use Cose\Key\Ec2Key;
use const OPENSSL_ALGO_SHA512;

final class ES512 extends ECDSA
{
    public const ID = -36;

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

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

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

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

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

The same content is in 155 releases, Joomla 5.0.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.