Skip to content

add hss.c module #122

Closed
gbanegas wants to merge 1 commit into
bergzand:masterfrom
gbanegas:master
Closed

add hss.c module #122
gbanegas wants to merge 1 commit into
bergzand:masterfrom
gbanegas:master

Conversation

@gbanegas
Copy link
Copy Markdown
Collaborator

The code in HSS uses the hash-sig package from https://github.com/future-proof-iot/hash-sigs/
The main idea in the hss.c module is that it calls the "api.h" in the package and return the desired functions: Key generation, sign, and verification.

@kaspar030
Copy link
Copy Markdown
Collaborator

The main idea in the hss.c module is that it calls the "api.h" in the package and return the desired functions: Key generation, sign, and verification.

I don't understand the point of these wrappers. hash-sig already exports "sign()" "veriy()" and "keygen()" as global symbols, can't we just use those?
It get's more interesting if libcose were to support multiple backends, with probably duplicate "sign()" etc. in that case, we'd either rename upstream, use gcc's replace functions, or something else.

@bergzand
Copy link
Copy Markdown
Owner

It would be good to have some way to wrap these functions to a generic cose wrappers in case we get another library supporting hss-lms. I don't mind these wrappers for now

@kaspar030
Copy link
Copy Markdown
Collaborator

I've used this hss.c as basis for hash-sigs.c of #119.
Thanks @gbanegas!

@kaspar030 kaspar030 closed this Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants