CoreFiles by mySites.guru
HS256.php34 lines, 578 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
1018723b9fd6b1f74ddc0e3552dd2c4c
sha1
9fda8eb4f88093f5f4c37d2c0ca836b64f0377e8
sha256
501e3a26e8fef6ff2edcb6c9c8831c24ac3a4523bb641598f75b09d0a8b30859
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2019 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Cose\Algorithm\Mac;

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

    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 131 releases, Joomla 4.0.0-beta to 4.4.14. See them all, or every version of this file.