der_dsa.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * WARNING: do not edit!
  3. * Generated by makefile from providers\common\include\prov\der_dsa.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 "internal/der.h"
  13. /* Well known OIDs precompiled */
  14. /*
  15. * id-dsa OBJECT IDENTIFIER ::= {
  16. * iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 }
  17. */
  18. #define DER_OID_V_id_dsa DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01
  19. #define DER_OID_SZ_id_dsa 9
  20. extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];
  21. /*
  22. * id-dsa-with-sha1 OBJECT IDENTIFIER ::= {
  23. * iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 }
  24. */
  25. #define DER_OID_V_id_dsa_with_sha1 DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03
  26. #define DER_OID_SZ_id_dsa_with_sha1 9
  27. extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];
  28. /*
  29. * id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }
  30. */
  31. #define DER_OID_V_id_dsa_with_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x01
  32. #define DER_OID_SZ_id_dsa_with_sha224 11
  33. extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];
  34. /*
  35. * id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }
  36. */
  37. #define DER_OID_V_id_dsa_with_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x02
  38. #define DER_OID_SZ_id_dsa_with_sha256 11
  39. extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];
  40. /*
  41. * id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }
  42. */
  43. #define DER_OID_V_id_dsa_with_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x03
  44. #define DER_OID_SZ_id_dsa_with_sha384 11
  45. extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];
  46. /*
  47. * id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }
  48. */
  49. #define DER_OID_V_id_dsa_with_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x04
  50. #define DER_OID_SZ_id_dsa_with_sha512 11
  51. extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];
  52. /*
  53. * id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }
  54. */
  55. #define DER_OID_V_id_dsa_with_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x05
  56. #define DER_OID_SZ_id_dsa_with_sha3_224 11
  57. extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];
  58. /*
  59. * id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }
  60. */
  61. #define DER_OID_V_id_dsa_with_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x06
  62. #define DER_OID_SZ_id_dsa_with_sha3_256 11
  63. extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];
  64. /*
  65. * id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }
  66. */
  67. #define DER_OID_V_id_dsa_with_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x07
  68. #define DER_OID_SZ_id_dsa_with_sha3_384 11
  69. extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];
  70. /*
  71. * id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }
  72. */
  73. #define DER_OID_V_id_dsa_with_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x08
  74. #define DER_OID_SZ_id_dsa_with_sha3_512 11
  75. extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];
  76. /* Subject Public Key Info */
  77. int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
  78. /* Signature */
  79. int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,
  80. DSA *dsa, int mdnid);