CoreFiles by mySites.guru
HS256.php30 lines, 459 bytes, from Joomla_6.2.0-beta1-Beta-Full_Package.zip
Raw History Compare with 6.1.0-beta3
md5
3cb0f1e66b8bcf4184b08aabc86808b3
sha1
7a829a05cb0d96a3dd223aa6ecd7dbf9768f22c5
sha256
346b1e7402cfabba769994ede9171f6d2b7d5c94c51009c047ffda2f50875e80
<?php

declare(strict_types=1);

namespace Cose\Algorithm\Mac;

final class HS256 extends Hmac
{
    public const ID = 5;

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

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

    protected function getHashAlgorithm(): string
    {
        return 'sha256';
    }

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

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.