OSCCA Extensions For OpenPGP
draft-openpgp-oscca-02

Document Type Active Internet-Draft (individual)
Last updated 2017-09-13
Stream ISE
Intended RFC status Experimental
Formats plain text xml pdf html bibtex
Stream ISE state Finding Reviewers
Consensus Boilerplate Unknown
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                             R. Tse
Internet-Draft                                                    Ribose
Updates: 4880, 6637 (if approved)                                W. Wong
Intended status: Standards Track            Hang Seng Management College
Expires: March 18, 2018                                         J. Lloyd
                                                                D. Wyatt
                                                             E. Borsboom
                                                                  Ribose
                                                      September 14, 2017

                      OSCCA Extensions For OpenPGP
                         draft-openpgp-oscca-02

Abstract

   This document enables OpenPGP (RFC4880) usage in an compliant manner
   with OSCCA regulations for use within China.

   Specifically, it extends OpenPGP to support the usage of SM2, SM3 and
   SM4 algorithms, and provides the OSCCA-compliant OpenPGP profile
   "OSCCA-SM234".

Status of This Memo

   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 March 18, 2018.

Copyright Notice

   Copyright (c) 2017 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

Tse, et al.              Expires March 18, 2018                 [Page 1]
Internet-Draft                                            September 2017

   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.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Conventions Used in This Document . . . . . . . . . . . . . .   4
     2.1.  Definitions . . . . . . . . . . . . . . . . . . . . . . .   4
     2.2.  Basic Operations  . . . . . . . . . . . . . . . . . . . .   4
   3.  SM2 ECC Algorithms  . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  SM2 Digital Signature Algorithm . . . . . . . . . . . . .   5
     3.2.  SM2 Key Exchange Protocol . . . . . . . . . . . . . . . .   6
     3.3.  SM2 Public Key Encryption . . . . . . . . . . . . . . . .   6
     3.4.  Recommended SM2 Curve . . . . . . . . . . . . . . . . . .   7
       3.4.1.  Definitions . . . . . . . . . . . . . . . . . . . . .   7
       3.4.2.  Elliptic Curve Formula  . . . . . . . . . . . . . . .   7
       3.4.3.  Curve Parameters  . . . . . . . . . . . . . . . . . .   7
   4.  SM3 Hash Algorithm  . . . . . . . . . . . . . . . . . . . . .   8
   5.  SM4 Symmetric Encryption Algorithm  . . . . . . . . . . . . .   9
   6.  Supported Algorithms  . . . . . . . . . . . . . . . . . . . .   9
     6.1.  Public Key Algorithms . . . . . . . . . . . . . . . . . .   9
     6.2.  Symmetric Key Algorithms  . . . . . . . . . . . . . . . .   9
     6.3.  Hash Algorithms . . . . . . . . . . . . . . . . . . . . .  10
   7.  Conversion Primitives . . . . . . . . . . . . . . . . . . . .  10
   8.  SM2 Key Derivation Function . . . . . . . . . . . . . . . . .  10
     8.1.  Prerequisites . . . . . . . . . . . . . . . . . . . . . .  11
     8.2.  Inputs  . . . . . . . . . . . . . . . . . . . . . . . . .  11
     8.3.  Outputs . . . . . . . . . . . . . . . . . . . . . . . . .  11
   9.  Encoding of Public and Private Keys . . . . . . . . . . . . .  12
     9.1.  Public-Key Packet Formats . . . . . . . . . . . . . . . .  12
     9.2.  Secret-Key Packet Formats . . . . . . . . . . . . . . . .  13
   10. Message Encoding with Public Keys . . . . . . . . . . . . . .  13
     10.1.  Public-Key Encrypted Session Key Packets (Tag 1) . . . .  13
     10.2.  Signature Packet (Tag 2) . . . . . . . . . . . . . . . .  14
       10.2.1.  Version 3 Signature Packet Format  . . . . . . . . .  14
       10.2.2.  Version 4 Signature Packet Format  . . . . . . . . .  14
Show full document text