Skip to main content

6. Cryptographic Algorithms for Keys

6.1 "kty" (Key Type) Parameter Values

Supported key types in JWK:

  • EC: Elliptic Curve keys
  • RSA: RSA keys
  • oct: Symmetric keys

6.2 Parameters for Elliptic Curve Keys

Public Key Parameters:

  • crv: Curve name (P-256, P-384, P-521)
  • x: X coordinate
  • y: Y coordinate

Private Key Parameters:

  • d: ECC private key value

6.3 Parameters for RSA Keys

Public Key Parameters:

  • n: Modulus
  • e: Exponent

Private Key Parameters:

  • d: Private exponent
  • p: First prime factor
  • q: Second prime factor
  • dp, dq, qi: CRT parameters
  • oth: Other primes info (multi-prime RSA)

6.4 Parameters for Symmetric Keys

  • k: Key value (Base64url encoded)