Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #27999

Closed (moved)
(moved)
Open
Created Oct 11, 2018 by Linus Nordberg@linus

Allow for long-running signing operations

In order to be able to put secret keys used for signing status documents on an HSM device, which may require a long time(*) to finish, we need to allow for router_get_dirobj_signature() to return something akin to EAGAIN and make its callers able to cope with that.

router_get_dirobj_signature() has only two callers, both with only one same caller (dirvote_act()) so that seems pretty contained. Question is if we should push this down a level to crypto_pk_private_sign() for other potential use cases than votes and consensuses only?

(*) Let's define "a long time" as anything taking more than 1/10 of a second.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking