nqminds / trustnetz

BRSKI demo for NIST
0 stars 0 forks source link

Nist policy rust library #26

Closed AshleySetter closed 9 months ago

AshleySetter commented 9 months ago

I have implemented a first version of the Nist Policy rust library, at the moment I have only implemented the policy check for if a manufacturer should be trusted.

The function takes 2 arguments an X509 Certificate (the idevid) and the path to the sqlite database which contains the current state of the information received by the registrar.

I have attached multiple databases as part of the tests which you should be able to use to test integrating with your code when you're ready @jr7g19.

AshleySetter commented 9 months ago

I've now added the functions (and unit tests) to check if device is trusted, as well as to check if device is vulnerable (has any high or critical severity vulnerabilities)