You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
540 B

  1. /* Copyright (c) 2014 Cryptography Research, Inc.
  2. * Released under the MIT License. See LICENSE.txt for license information.
  3. */
  4. #ifndef __GOLDILOCKS_H__
  5. #define __GOLDILOCKS_H__ 1
  6. #include <stdint.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. int
  11. goldilocks_init();
  12. int
  13. goldilocks_keygen(
  14. uint8_t private[56],
  15. uint8_t public[56]
  16. );
  17. int
  18. goldilocks_shared_secret(
  19. uint8_t shared[56],
  20. const uint8_t private[56],
  21. const uint8_t public[56]
  22. );
  23. #ifdef __cplusplus
  24. }; /* extern "C" */
  25. #endif
  26. #endif /* __GOLDILOCKS_H__ */