[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 namespace Lcobucci\JWT\Signer\Ecdsa; 3 4 /** 5 * Manipulates the result of a ECDSA signature (points R and S) according to the 6 * JWA specs. 7 * 8 * OpenSSL creates a signature using the ASN.1 format and, according the JWA specs, 9 * the signature for JWTs must be the concatenated values of points R and S (in 10 * big-endian octet order). 11 * 12 * @internal 13 * 14 * @see https://tools.ietf.org/html/rfc7518#page-9 15 * @see https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One 16 */ 17 interface SignatureConverter 18 { 19 /** 20 * Converts the signature generated by OpenSSL into what JWA defines 21 * 22 * @param string $signature 23 * @param int $length 24 * 25 * @return string 26 */ 27 public function fromAsn1($signature, $length); 28 29 /** 30 * Converts the JWA signature into something OpenSSL understands 31 * 32 * @param string $points 33 * @param int $length 34 * 35 * @return string 36 */ 37 public function toAsn1($points, $length); 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |