oct
Registry Context
`oct` is the JWK key type for symmetric or other single-valued octet-sequence keys. When using `oct`, an `alg` member should normally identify the intended algorithm.
Technical Summary
RFC 7518 Section 6.1 defines the JWK `kty` value `oct` for octet sequences used to represent symmetric keys. Section 6.4 specifies that the `k` member represents the symmetric or other single-octet-sequence key and recommends including `alg` unless another application convention determines the algorithm.
When Used
When representing a symmetric key, or another key whose value is a single octet sequence, as a JWK.
Normative Requirements
Unspecified actor
RFC 7518 - Section 6.4
An `alg` member should be present to identify the algorithm intended for use with the key..
Condition: When the JWK `kty` member is `oct`, unless the application uses another means or convention to determine the algorithm.
An "alg" member SHOULD also be present to identify the algorithm intended to be used with the key
Validation Guidance
Recognize `oct` as the JWK `kty` value for an octet sequence used to represent symmetric keys.
When `kty` is `oct`, warn if `alg` is absent unless another application-specific means or convention determines the algorithm.
When `kty` is `oct`, interpret `k` as the base64url encoding of the octet sequence containing the key value.
Reference
Details
- Entry Id
oct- Kty Parameter Value
oct- Key Type Description
Octet sequence- Jose Implementation Requirements
Required- Change Controller
IESG- Reference
RFC7518 - Section 6.4