webauthn::WebAuthn method cose_public_key_pem (protected)

 <instance of webauthn::WebAuthn[i]> cose_public_key_pem \
    [ -cose cose ]

Defined in packages/webauthn/tcl/webauthn-procs.tcl

Convert a COSE_Key into a PEM-encoded public key. Supports the WebAuthn-relevant COSE key types: - EC2 (kty=2): Elliptic Curve keys (e.g., ES256 / P-256) - RSA (kty=3): RSA keys (e.g., RS256) - OKP (kty=1): Octet Key Pair keys, including: * Ed25519 / Ed448 (signature) * X25519 / X448 (key agreement) Note: This method performs key *conversion only*. It does not enforce algorithm or usage constraints. Callers (e.g., assertion verification) must ensure that the selected key type and curve are appropriate for the intended operation (e.g., signature vs. key agreement).

Switches:
-cose (optional)
Parsed COSE_Key dict.
Returns:
PEM string of public key

Testcases:
No testcase defined.
[ show source ]
Show another procedure: