ParagonIE_Sodium_Core_Ristretto255::h2c_string_to_hash() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core_Ristretto255::h2c_string_to_hash( $hLen, $ctx, $msg, $hash_alg );

Parameters

$hLen
( int ) required
$ctx
( ?string ) required
$msg
( string ) required
$hash_alg
( int ) required

Returns

string

Source

File name: wordpress/wp-includes/sodium_compat/src/Core/Ristretto255.php


Lines:

1 to 12 of 12
    public static function h2c_string_to_hash($hLen, $ctx, $msg, $hash_alg)
    {
        switch ($hash_alg) {
            case self::CORE_H2C_SHA256:
                return self::h2c_string_to_hash_sha256($hLen, $ctx, $msg);
            case self::CORE_H2C_SHA512:
                return self::h2c_string_to_hash_sha512($hLen, $ctx, $msg);
            default:
                throw new SodiumException('Invalid H2C hash algorithm');
        }
    }
 

 View on GitHub View on Trac