der_ecx.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * WARNING: do not edit!
  3. * Generated by makefile from providers\common\include\prov\der_ecx.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. #include "crypto/ecx.h"
  14. /* Well known OIDs precompiled */
  15. /*
  16. * id-X25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 110 }
  17. */
  18. #define DER_OID_V_id_X25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6E
  19. #define DER_OID_SZ_id_X25519 5
  20. extern const unsigned char ossl_der_oid_id_X25519[DER_OID_SZ_id_X25519];
  21. /*
  22. * id-X448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 111 }
  23. */
  24. #define DER_OID_V_id_X448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6F
  25. #define DER_OID_SZ_id_X448 5
  26. extern const unsigned char ossl_der_oid_id_X448[DER_OID_SZ_id_X448];
  27. /*
  28. * id-Ed25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 112 }
  29. */
  30. #define DER_OID_V_id_Ed25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x70
  31. #define DER_OID_SZ_id_Ed25519 5
  32. extern const unsigned char ossl_der_oid_id_Ed25519[DER_OID_SZ_id_Ed25519];
  33. /*
  34. * id-Ed448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 113 }
  35. */
  36. #define DER_OID_V_id_Ed448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x71
  37. #define DER_OID_SZ_id_Ed448 5
  38. extern const unsigned char ossl_der_oid_id_Ed448[DER_OID_SZ_id_Ed448];
  39. int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
  40. int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
  41. int ossl_DER_w_algorithmIdentifier_X25519(WPACKET *pkt, int cont, ECX_KEY *ec);
  42. int ossl_DER_w_algorithmIdentifier_X448(WPACKET *pkt, int cont, ECX_KEY *ec);