pike.git / lib / modules / Web.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Web.pmod/testsuite.in:63:    ]])   ]]);      test_do(add_constant("JOSE_KEYS"))      dnl Test JWK Thumbprints (Vector from RFC 7638 3.1).   test_any_equal([[    Crypto.Sign.State key = Web.decode_jwk(Standards.JSON.decode(#[    {    "kty": "RSA", -  "n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAt -  VT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn6 -  4tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FD -  W2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n9 -  1CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINH -  aQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw", +  "n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw",    "e": "AQAB",    "alg": "RS256",    "kid": "2011-04-29"    } #]));    return (array)key->jwk_thumbprint(Crypto.SHA256);   ]], ({    55, 54, 203, 177, 120, 124, 184, 48, 156, 119, 238, 140, 55, 5, 197,    225, 111, 251, 158, 133, 151, 21, 144, 31, 30, 76, 89, 177, 17, 130,    245, 123   }))