curve448_local.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_CRYPTO_EC_CURVE448_LOCAL_H
  10. # define OSSL_CRYPTO_EC_CURVE448_LOCAL_H
  11. # include "curve448utils.h"
  12. int X448(uint8_t out_shared_key[56], const uint8_t private_key[56],
  13. const uint8_t peer_public_value[56]);
  14. void X448_public_from_private(uint8_t out_public_value[56],
  15. const uint8_t private_key[56]);
  16. int ED448_sign(uint8_t *out_sig, const uint8_t *message, size_t message_len,
  17. const uint8_t public_key[57], const uint8_t private_key[57],
  18. const uint8_t *context, size_t context_len);
  19. int ED448_verify(const uint8_t *message, size_t message_len,
  20. const uint8_t signature[114], const uint8_t public_key[57],
  21. const uint8_t *context, size_t context_len);
  22. int ED448ph_sign(uint8_t *out_sig, const uint8_t hash[64],
  23. const uint8_t public_key[57], const uint8_t private_key[57],
  24. const uint8_t *context, size_t context_len);
  25. int ED448ph_verify(const uint8_t hash[64], const uint8_t signature[114],
  26. const uint8_t public_key[57], const uint8_t *context,
  27. size_t context_len);
  28. int ED448_public_from_private(uint8_t out_public_key[57],
  29. const uint8_t private_key[57]);
  30. #endif /* OSSL_CRYPTO_EC_CURVE448_LOCAL_H */