type Key

bend-kit-jwt@0.11.0.1 · jwt.bend:20

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

20# Hmac: the shared secret, at least the digest's size (RFC 7518 §3.2).
21# Pem: a PEM "PUBLIC KEY" to verify, or an unencrypted PEM private key to sign.
22# Rsa, Ec: JWK public key parts as big-endian octets (RFC 7518 §6.3, §6.2 on P-256).
23type Key is Type:
24  Hmac{secret: Bytes.Bytes}
25  Pem{pem: Bytes.Bytes}
26  Rsa{n: Bytes.Bytes, e: Bytes.Bytes}
27  Ec{x: Bytes.Bytes, y: Bytes.Bytes}

Uses (1)

Used by (20)