No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

33 líneas
1.1 KiB

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