xaptum / ecdaa

A C implementation of elliptic-curve-based Direct Anonymous Attestation (DAA) signatures. Created to support the Xaptum Edge Network Fabric, an IoT Network Solution.
https://www.xaptum.com
Apache License 2.0
45 stars 8 forks source link

Public key as bytes in init #62

Closed zanebeckwith closed 6 years ago

zanebeckwith commented 6 years ago

To work toward avoiding AMCL knowledge in the user, the tpm_context_init function should take its public key input in the well-known x9.62 encoding, and not as an AMCL ECP struct.

This arose during usage of the ecdaa-python wrapper, where we need to create a tpm_context struct but don't have access to AMCL functions for creating the necessary ECP public key point.

To fully avoid AMCL knowledge in the API, we also need to add "add" and "remove" (and serialization) functionality to the revocations struct, but that's TODO.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.03%) to 95.361% when pulling e9a09ef13f329496d99d3d869d6bc54a9f2d28b9 on zanebeckwith:public-key-as-bytes-in-init into 5a00533a7ab6357a00e4219152b84afee87b3782 on xaptum:master.