Internet-Draft | Using SM2 with JOSE and COSE | November 2021 |
Dang | Expires 10 May 2022 | [Page] |
This specification defines algorithm encodings and representations enabling the ISO/IEC 14888-3:2018 elliptic curve "SM2" to be used for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE) messages.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 10 May 2022.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
This specification defines algorithm encodings and representations enabling the ISO/IEC 14888-3:2018 elliptic curve "SM2" [ISO14888-3] to be used for JSON Object Signing and Encryption (JOSE) [RFC7515] and CBOR Object Signing and Encryption (COSE) [RFC8152] messages. The elliptic curve and associated algorithm are registered in appropriate IANA JOSE and COSE registries.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The ISO/IEC 14888-3:2018 elliptic curve "SM2" [ISO14888-3] is represented in a JSON Web Key (JWK) [RFC7517] using these values:¶
plus x
and y
values
to represent the curve point for the key.
Other optional values such as alg
MAY also be present.¶
It is represented in a COSE_Key [RFC8152] using these values:¶
plus x
(-2) and y
(-3) values
to represent the curve point for the key.
Other optional values such as alg
(3) MAY also be present.¶
The ECDSA signature algorithm is defined in [ISO14888-3].
Implementations need to check that the key type is EC
for JOSE or
EC2
(2) for COSE when creating or verifying a signature.¶
The ECDSA algorithm specified in this document is:¶
JOSE Alg Name | COSE Alg Value | Description |
---|---|---|
SM2 | TBD (requested assignment -48) | ECDSA w/ SM2 Curve |
This section registers the following value in the IANA "JSON Web Key Elliptic Curve" registry [IANA.JOSE.Curves].¶
This section registers the following value in the IANA "JSON Web Signature and Encryption Algorithms" registry [IANA.JOSE.Algorithms].¶
This section registers the following value in the IANA "COSE Elliptic Curves" registry [IANA.COSE.Curves].¶
This section registers the following value in the IANA "COSE Algorithms" registry [IANA.COSE.Algorithms].¶
The procedures and security considerations described in the [ISO14888-3] specifications apply to implementations of this specification.¶
[[ to be removed by the RFC Editor before publication as an RFC ]]¶
-00¶