|
Embedded SDK
Embedded SDK
|


Go to the source code of this file.
Typedefs | |
| typedef enum check_signature_with_pki_status_e | check_signature_with_pki_status_t |
Functions | |
| check_signature_with_pki_status_t | check_signature_with_pki (const buffer_t hash, const uint8_t *expected_key_usage, const cx_curve_t *expected_curve, const buffer_t signature) |
| Checks a signature using the PKI certificate. | |
Definition at line 6 of file ledger_pki.h.
| check_signature_with_pki_status_t check_signature_with_pki | ( | const buffer_t | hash, |
| const uint8_t * | expected_key_usage, | ||
| const cx_curve_t * | expected_curve, | ||
| const buffer_t | signature | ||
| ) |
Checks a signature using the PKI certificate.
This function retrieves the PKI certificate information from the OS, verifies that the key usage and curve match the expected values, and then checks the signature against the provided hash.
| hash | Buffer containing the hash to verify. |
| expected_key_usage | Expected key usage value of the loaded certificate or NULL. |
| expected_curve | Expected elliptic curve of the loaded certificate or NULL. |
| signature | Buffer containing the signature to verify. |
Definition at line 5 of file ledger_pki.c.