OSCCA Extensions For OpenPGP
draft-openpgp-oscca-00

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Authors Ronald Tse  , Wong Kit 
Last updated 2017-08-28
Replaced by draft-ribose-openpgp-oscca
Stream (None)
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
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 2, 2018                                   August 29, 2017

                      OSCCA Extensions For OpenPGP
                         draft-openpgp-oscca-00

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.

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 http://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 2, 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
   (http://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

Tse & Wong                Expires March 2, 2018                 [Page 1]
Internet-Draft                                               August 2017

   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
   3.  SM2 ECC Algorithms  . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  SM2 Digital Signature Algorithm . . . . . . . . . . . . .   4
     3.2.  SM2 Key Exchange Protocol . . . . . . . . . . . . . . . .   5
     3.3.  SM2 Public Key Encryption . . . . . . . . . . . . . . . .   5
     3.4.  Recommended SM2 Curve . . . . . . . . . . . . . . . . . .   6
       3.4.1.  Definitions . . . . . . . . . . . . . . . . . . . . .   6
       3.4.2.  Elliptic Curve Formula  . . . . . . . . . . . . . . .   6
       3.4.3.  Curve Parameters  . . . . . . . . . . . . . . . . . .   6
   4.  SM3 Hash Algorithm  . . . . . . . . . . . . . . . . . . . . .   7
   5.  SM4 Symmetric Encryption Algorithm  . . . . . . . . . . . . .   7
   6.  Supported Algorithms  . . . . . . . . . . . . . . . . . . . .   7
     6.1.  Public Key Algorithms . . . . . . . . . . . . . . . . . .   8
     6.2.  Symmetric Key Algorithms  . . . . . . . . . . . . . . . .   8
     6.3.  Hash Algorithms . . . . . . . . . . . . . . . . . . . . .   8
   7.  Conversion Primitives . . . . . . . . . . . . . . . . . . . .   9
   8.  SM2 Key Derivation Function . . . . . . . . . . . . . . . . .   9
     8.1.  Prerequisites . . . . . . . . . . . . . . . . . . . . . .   9
     8.2.  Inputs  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     8.3.  Output  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     8.4.  Pseudocode  . . . . . . . . . . . . . . . . . . . . . . .   9
   9.  Encoding of Public and Private Keys . . . . . . . . . . . . .  10
     9.1.  Public-Key Packet Formats . . . . . . . . . . . . . . . .  10
     9.2.  Secret-Key Packet Formats . . . . . . . . . . . . . . . .  11
   10. Message Encoding with Public Keys . . . . . . . . . . . . . .  11
     10.1.  Public-Key Encrypted Session Key Packets (Tag 1) . . . .  11
     10.2.  Signature Packet (Tag 2) . . . . . . . . . . . . . . . .  12
       10.2.1.  Version 3 Signature Packet Format  . . . . . . . . .  12
       10.2.2.  Version 4 Signature Packet Format  . . . . . . . . .  12
   11. SM2 ECC Curve OID . . . . . . . . . . . . . . . . . . . . . .  12
   12. Compatibility Profiles  . . . . . . . . . . . . . . . . . . .  13
     12.1.  OSCCA Compliant Profile  . . . . . . . . . . . . . . . .  13
   13. Security Considerations . . . . . . . . . . . . . . . . . . .  13
   14. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  14
   15. Examples  . . . . . . . . . . . . . . . . . . . . . . . . . .  14
   16. References  . . . . . . . . . . . . . . . . . . . . . . . . .  14
Show full document text