| Top |
| GType | fpi_sdcp_claim_get_type () |
| FpiSdcpClaim * | fpi_sdcp_claim_new () |
| FpiSdcpClaim * | fpi_sdcp_claim_copy () |
| void | fpi_sdcp_claim_free () |
| GBytes * | fpi_sdcp_claim_hash () |
FpiSdcpClaim *
fpi_sdcp_claim_new (void);
Create an empty FpiSdcpClaim to provide to the base class.
FpiSdcpClaim *
fpi_sdcp_claim_copy (FpiSdcpClaim *other);
Create a (shallow) copy of a FpiSdcpClaim.
void
fpi_sdcp_claim_free (FpiSdcpClaim *claim);
Release the memory used by an FpiSdcpClaim.
GBytes * fpi_sdcp_claim_hash (FpiSdcpClaim *claim,GError **error);
Computes SHA256 over the claim fields (model_certificate || device_public_key || firmware_public_key || firmware_hash || model_signature || device_signature).
struct FpiSdcpClaim {
const char *master_secret_label;
const char *application_keys_label;
const char *connect_label;
const char *reconnect_label;
const char *enroll_label;
const char *identify_label;
const char *sample_label;
GBytes *model_certificate; /* cert_m */
GBytes *device_public_key; /* pk_d */
GBytes *firmware_public_key; /* pk_f */
GBytes *firmware_hash; /* h_f */
GBytes *model_signature; /* s_m */
GBytes *device_signature; /* s_d */
};
Structure to hold the claim as produced by the device during a secure connect. See the SDCP specification for more details.
Note all of these may simply be memory views into a larger GBytes created
using g_bytes_new_from_bytes().
HMAC label for master secret derivation, or |
||
HMAC label for application keys derivation, or |
||
HMAC label for connect operations, or |
||
HMAC label for reconnect operations, or |
||
HMAC label for enroll operations, or |
||
HMAC label for identify operations, or |
||
HMAC label for sample operations, or |
||
Microsoft-issued per-model certificate encoded in x509
ASN.1 DER format ( |
||
The per-device ECDSA public key ( |
||
The ephemeral public key generated by the device
firmware ( |
||
Hash of the firmware and firmware public key ( |
||
Device public key signed by the model key ( |
||
Firmware hash and public key signed by the device private
key ( |