curves.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright (c) 2016 Jochen Hoenicke
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining
  5. * a copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included
  12. * in all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  15. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
  18. * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. */
  22. #include "curves.h"
  23. const char SECP256K1_NAME[] = "secp256k1";
  24. const char SECP256K1_DECRED_NAME[] = "secp256k1-decred";
  25. const char SECP256K1_GROESTL_NAME[] = "secp256k1-groestl";
  26. const char SECP256K1_SMART_NAME[] = "secp256k1-smart";
  27. const char NIST256P1_NAME[] = "nist256p1";
  28. const char ED25519_NAME[] = "ed25519";
  29. const char ED25519_SEED_NAME[] = "ed25519 seed";
  30. #if USE_CARDANO
  31. const char ED25519_CARDANO_NAME[] = "ed25519 cardano seed";
  32. #endif
  33. const char ED25519_SHA3_NAME[] = "ed25519-sha3";
  34. #if USE_KECCAK
  35. const char ED25519_KECCAK_NAME[] = "ed25519-keccak";
  36. #endif
  37. const char CURVE25519_NAME[] = "curve25519";