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.
 
 
 
 
 

121 lines
3.9 KiB

  1. Important work items for Ed448-Goldilocks:
  2. * Import SHA-512 or SHA-3.
  3. * Decide which.
  4. * Get a public-domain version which is 64-bit and 32-bit clean.
  5. * Update LICENSE and README to reflect that SHA is not my code.
  6. * Incorporate hashing into goldilocks_shared_secret.
  7. * It's a pretty terrible shared secret right now.
  8. * Decide on output size
  9. * Documentation: write high-level API docs, and internal docs to help
  10. other implementors.
  11. * Documentation: write a spec or add to Watson's
  12. * Cleanup: rename everything consistently.
  13. * namespace_op or op_namespace? namespace_op_type?
  14. * We don't have to be super-careful with the namespacing, because
  15. symbols will be scrubbed by exported.sym.
  16. * Cleanup: hard-coded tables (probably?)
  17. * This reduces the work required for goldilocks_init() at the expense
  18. of library size.
  19. * Makes error-handling and thread safety easier.
  20. * Use the SAGE tool?
  21. * Cleanup: unify intrinsics code
  22. * Word_t, mask_t, bigregister_t, etc.
  23. * Generate asm intrinsics with a script?
  24. * Bugfix: make sure that init() and randomization are thread-safe.
  25. * Security: check on deserialization that points are < p.
  26. * Check also that they're nonzero or otherwise non-pathological?
  27. * Testing:
  28. * Corner-case testing
  29. * more bulk random testing
  30. * SAGE-(auto?)-generated test vectors
  31. * Test the Barrett fields
  32. * Safety: add static analysis attributes for compilers that support them
  33. * EG, warn on ignored return types
  34. * Safety:
  35. * Check for init() if it's still required once we've done the above
  36. * Decide what to do about RNG failures
  37. * abort
  38. * return error and zeroize
  39. * return error but continue if RNG is kind of mostly OK
  40. * Flexibility: decide which API options are good.
  41. * Eg, should functions take nbits and table sizes?
  42. * Remove hardcoded adjustments from comb control.
  43. * These adjustments make the output wrong when it's not 450 bits.
  44. * Other slow Barrett fields? Montgomery fields?
  45. * Mid-level API
  46. * Make it easier to work with untwisted Edwards objects.
  47. * Probably use extended or projective, not extensible coordinates.
  48. * Scalarmul with other cofactor modes.
  49. * High-level API:
  50. * Signatures.
  51. * Decide on strictness level.
  52. * SPAKE2 Elligator Edition? Maybe write a paper first.
  53. * Elligator.
  54. * Need to write Elligator inverse. Might not be Elligator-2S.
  55. * What low-level APIs to expose?
  56. * Edwards points with add, sub, scalarmul, =, ==, ser/deser?
  57. * Portability: try to make the vector code as portable as possible
  58. * Currently using clang ext_vector_length.
  59. * I can't get a simple for-loop to autovectorize :-/
  60. * SAGE tool?
  61. * Portability: make the inner layers of the code 32-bit clean.
  62. * Write new versions of the field code.
  63. * 28-bit limbs give less headroom for carries.
  64. * NEON and vectorless ARM.
  65. * Run through the SAGE tool to generate new bias & bound.
  66. * Portability: make the outer layers of the code 32-bit clean.
  67. * I don't think that there are endian bugs, but who knows?
  68. * NEON and vectorless constant-time comparison.
  69. * Performance: write and incorporate some extra routines
  70. * Deserialize_and_isogeny
  71. * Unconditional negate (or just plain subtract)
  72. * Performance: fixed parameters?
  73. * Perhaps useful for comb precomputation.
  74. * Performance: improve the Barrett field code.
  75. * Support other primes?
  76. * Capture prime shape into a struct instead of passing 3 params.
  77. * Make 32-bit clean. (SAGE?)
  78. * Automation:
  79. * Improve the SAGE tool to cover more cases
  80. * Real SSA classes to cover branching and looping
  81. * Constant-time selection
  82. * Intrinsics code
  83. * Field code?
  84. * Vector-mul-chains
  85. * Negation "bubble pushing" optimization
  86. * Clear other TODO/FIXME/HACK/PERF items in the code
  87. * Submit to SUPERCOP