CoreFiles by mySites.guru
ES256KeyAnalyzer.php31 lines, 558 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
8cc136153f7fa73f46b466770c66eb64
sha1
d595d28b251e724445e23fc17aa801cee992cd84
sha256
d4c775189ce1e71843e3913873bbe20bc36bdcfde6d944bfe1310b7682534cb8
<?php

declare(strict_types=1);

namespace Jose\Component\KeyManagement\Analyzer;

use Jose\Component\Core\Util\Ecc\Curve;
use Jose\Component\Core\Util\Ecc\NistCurve;

final class ES256KeyAnalyzer extends ESKeyAnalyzer
{
    protected function getAlgorithmName(): string
    {
        return 'ES256';
    }

    protected function getCurveName(): string
    {
        return 'P-256';
    }

    protected function getCurve(): Curve
    {
        return NistCurve::curve256();
    }

    protected function getKeySize(): int
    {
        return 256;
    }
}

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