ParagonIE_Sodium_Core_Ristretto255::ristretto255_scalar_from_string() –
You appear to be a bot. Output may be restricted
Description
Usage
$string = ParagonIE_Sodium_Core_Ristretto255::ristretto255_scalar_from_string( $ctx, $msg, $hash_alg );
Parameters
- $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 14 of 14
public static function ristretto255_scalar_from_string($ctx, $msg, $hash_alg) { $h = array_fill(0, 64, 0); $h_be = self::stringToIntArray( self::h2c_string_to_hash( self::HASH_SC_L, $ctx, $msg, $hash_alg ) ); for ($i = 0; $i < self::HASH_SC_L; ++$i) { $h[$i] = $h_be[self::HASH_SC_L - 1 - $i]; } return self::ristretto255_scalar_reduce(self::intArrayToString($h)); }