Skip to content

Add "non-detached" signature support #15

@James-E-A

Description

@James-E-A

It looks like PQClean adds an alternative "non-detached" signature mode

The API there looks a little weird

  1. returns int indicating success/failure
  2. uint8_t *sm which is a pre-allocated array of mlen + CRYPTO_BYTES bytes, which the result will be written into
  3. size_t *smlen which is a pre-allocated pointer, which (*mlen) + siglen will be written into
    • This is, of course, only useful when siglen < CRYPTO_BYTES may occur, (i.e. variable-length signatures.)
  4. const uint8_t *m, which is the array containing the message.
    • When sm == m, then I guess that allows big efficiency gains with memmove? (Does that mean we can reasonably deduce that the signature is always appended to the message?)
  5. size_t mlen, which is, of course, the length of the message
  6. const uint8_t sk[CRYPTO_SECRETKEYBYTES]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions