der_sm2.h 1.3 KB

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