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
846 B

  1. #ifndef PARAMS_H
  2. #define PARAMS_H
  3. #include <stdint.h>
  4. // These are simply internal identifiers for the supported hash functions
  5. #define XMSS_SHA2 0
  6. #define XMSS_SHAKE 1
  7. extern unsigned int XMSS_FUNC;
  8. extern unsigned int XMSS_N;
  9. extern unsigned int XMSS_WOTS_W;
  10. extern unsigned int XMSS_WOTS_LOG_W;
  11. extern unsigned int XMSS_WOTS_LEN1;
  12. extern unsigned int XMSS_WOTS_LEN2;
  13. extern unsigned int XMSS_WOTS_LEN;
  14. extern unsigned int XMSS_WOTS_KEYSIZE;
  15. extern unsigned int XMSS_FULLHEIGHT;
  16. extern unsigned int XMSS_TREEHEIGHT;
  17. extern unsigned int XMSS_D;
  18. extern unsigned int XMSS_INDEX_LEN;
  19. extern unsigned int XMSS_BYTES;
  20. extern unsigned int XMSS_PUBLICKEY_BYTES;
  21. extern unsigned int XMSS_PRIVATEKEY_BYTES;
  22. extern unsigned int XMSS_OID_LEN;
  23. extern unsigned int XMSS_BDS_K;
  24. int xmss_parse_oid(uint32_t oid);
  25. int xmssmt_parse_oid(uint32_t oid);
  26. #endif