40 #ifndef __BOLOS_ENDORSEMENT_H__
41 #define __BOLOS_ENDORSEMENT_H__
166 uint8_t *out,
size_t outLength);
190 uint8_t *out,
size_t outLength);
208 uint8_t *out,
size_t outLength);
225 uint8_t *out,
size_t outLength);
227 #endif // __BOLOS_ENDORSEMENT_H__
Definition: bolos_endorsement.h:48
int bls_endorsement_supported(bls_endorsement_key_t key)
Check if endorsement is supported for the given key.
int bls_endorsement_get_certificate(bls_endorsement_key_t endorsementKey, uint8_t *out, size_t outLength)
Get the certificate associated to an endorsement key.
Definition: bolos_endorsement.h:49
int bls_endorsement_get_public_key(bls_endorsement_key_t endorsementKey, uint8_t *out, size_t outLength)
Get the public component of an endorsement key.
int bls_endorsement_init(bls_endorsement_key_t key, uint8_t *out, size_t outLength)
Initialize an endorsement key provisioning for the given key.
int bls_endorsement_key2_derive_sign_data(const uint8_t WIDE *in, size_t length, uint8_t *out, size_t outLength)
Sign a message using a key derived from endorsement key 2.
int bls_endorsement_get_authentication_public_key(uint8_t *out, size_t outLength)
Get the per device unique uncompressed public key signing the endorsement initialization request...
int bls_endorsement_get_code_hash(uint8_t *out, size_t outLength)
Get the currently running code hash.
int bls_endorsement_commit(bls_endorsement_key_t key, uint8_t *response, size_t responseLength)
Finalize an endorsement key provisioning process by providing the associated certificate.
bls_endorsement_key_e
Describe the endorsement key to use.
Definition: bolos_endorsement.h:47
int bls_endorsement_key1_get_app_secret(uint8_t *out, size_t outLength)
Get the application secret for endorsement key 1.
int bls_endorsement_key1_sign_data(const uint8_t WIDE *in, size_t length, uint8_t *out, size_t outLength)
Sign a message using endorsement key 1.