CoreFiles by mySites.guru
ES256K.php38 lines, 627 bytes, from Joomla_5.4.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.3.0-beta3
md5
f757da68c03726d7f9d3e571d73af460
sha1
f039c1b5b841b4a76854a74a7bd4e851bb7c4661
sha256
739c8a2fb8a3a7690a0bbae1abddb09bf47f4d151a09f9fa826d763770cb7cd6
<?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 = -46;

    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 146 releases, Joomla 5.0.0-alpha1 to 6.2.0-alpha1. See them all, or every version of this file.