Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

31 lignes
1.0 KiB

  1. #ifndef SPX_FORS_H
  2. #define SPX_FORS_H
  3. #include <stdint.h>
  4. #include "params.h"
  5. /**
  6. * Signs a message m, deriving the secret key from sk_seed and the FTS address.
  7. * Assumes m contains at least SPX_FORS_HEIGHT * SPX_FORS_TREES bits.
  8. */
  9. void PQCLEAN_SPHINCSSHAKE256128SROBUST_CLEAN_fors_sign(
  10. unsigned char *sig, unsigned char *pk,
  11. const unsigned char *m,
  12. const unsigned char *sk_seed, const unsigned char *pub_seed,
  13. const uint32_t fors_addr[8]);
  14. /**
  15. * Derives the FORS public key from a signature.
  16. * This can be used for verification by comparing to a known public key, or to
  17. * subsequently verify a signature on the derived public key. The latter is the
  18. * typical use-case when used as an FTS below an OTS in a hypertree.
  19. * Assumes m contains at least SPX_FORS_HEIGHT * SPX_FORS_TREES bits.
  20. */
  21. void PQCLEAN_SPHINCSSHAKE256128SROBUST_CLEAN_fors_pk_from_sig(
  22. unsigned char *pk,
  23. const unsigned char *sig, const unsigned char *m,
  24. const unsigned char *pub_seed, const uint32_t fors_addr[8]);
  25. #endif