1 1.1 christos /* 2 1.1 christos * WARNING: do not edit! 3 1.1 christos * Generated by Makefile from providers/common/include/prov/der_sm2.h.in 4 1.1 christos * 5 1.1 christos * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 6 1.1 christos * 7 1.1 christos * Licensed under the Apache License 2.0 (the "License"). You may not use 8 1.1 christos * this file except in compliance with the License. You can obtain a copy 9 1.1 christos * in the file LICENSE in the source distribution or at 10 1.1 christos * https://www.openssl.org/source/license.html 11 1.1 christos */ 12 1.1 christos 13 1.1 christos #include "crypto/ec.h" 14 1.1 christos #include "internal/der.h" 15 1.1 christos 16 1.1 christos /* Well known OIDs precompiled */ 17 1.1 christos 18 1.1 christos /* 19 1.1 christos * sm2-with-SM3 OBJECT IDENTIFIER ::= { sm-scheme 501 } 20 1.1 christos */ 21 1.1 christos #define DER_OID_V_sm2_with_SM3 DER_P_OBJECT, 8, 0x2A, 0x81, 0x1C, 0xCF, 0x55, 0x01, 0x83, 0x75 22 1.1 christos #define DER_OID_SZ_sm2_with_SM3 10 23 1.1 christos extern const unsigned char ossl_der_oid_sm2_with_SM3[DER_OID_SZ_sm2_with_SM3]; 24 1.1 christos 25 1.1 christos /* 26 1.1 christos * curveSM2 OBJECT IDENTIFIER ::= { sm-scheme 301 } 27 1.1 christos */ 28 1.1 christos #define DER_OID_V_curveSM2 DER_P_OBJECT, 8, 0x2A, 0x81, 0x1C, 0xCF, 0x55, 0x01, 0x82, 0x2D 29 1.1 christos #define DER_OID_SZ_curveSM2 10 30 1.1 christos extern const unsigned char ossl_der_oid_curveSM2[DER_OID_SZ_curveSM2]; 31 1.1 christos 32 1.1 christos 33 1.1 christos /* Subject Public Key Info */ 34 1.1 christos int ossl_DER_w_algorithmIdentifier_SM2(WPACKET *pkt, int cont, EC_KEY *ec); 35 1.1 christos /* Signature */ 36 1.1 christos int ossl_DER_w_algorithmIdentifier_SM2_with_MD(WPACKET *pkt, int cont, 37 1.1 christos EC_KEY *ec, int mdnid); 38