Lines Matching refs:alg
122 if (empty($header->alg)) {
125 if (empty(static::$supported_algs[$header->alg])) {
132 if (!self::constantTimeEquals($key->getAlgorithm(), $header->alg)) {
136 if ($header->alg === 'ES256' || $header->alg === 'ES384') {
140 if (!self::verify("$headb64.$bodyb64", $sig, $key->getKeyMaterial(), $header->alg)) {
174 …* @param string $alg Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
187 string $alg, argument
191 $header = ['typ' => 'JWT', 'alg' => $alg];
203 $signature = static::sign($signing_input, $key, $alg);
214 * @param string $alg Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
224 string $alg argument
226 if (empty(static::$supported_algs[$alg])) {
229 list($function, $algorithm) = static::$supported_algs[$alg];
242 if ($alg === 'ES256') {
244 } elseif ($alg === 'ES384') {
275 * @param string $alg The algorithm
285 string $alg argument
287 if (empty(static::$supported_algs[$alg])) {
291 list($function, $algorithm) = static::$supported_algs[$alg];