CoreFiles by mySites.guru
ES512KeyAnalyzer.php31 lines, 558 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
9059941b9eb6990666cbcd3fc6e61cc8
sha1
eb5ce1ae743ea8536ec5010ba8e1bc036d481a2f
sha256
45bd79c319980c852d8531d0bb18d09a9b1a37ad17205ac7ec6c3d01219a54f6
<?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 ES512KeyAnalyzer extends ESKeyAnalyzer
{
    protected function getAlgorithmName(): string
    {
        return 'ES512';
    }

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

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

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

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.