Lines Matching full:mr
7 #include <linux/tsm-mr.h>
33 const struct tsm_measurement_register *mr,
42 switch (mr->mr_hash) {
45 sha256_update(&ctx.sha256, mr->mr_value, mr->mr_size);
46 sha256_update(&ctx.sha256, data, mr->mr_size);
47 sha256_final(&ctx.sha256, mr->mr_value);
51 sha384_update(&ctx.sha384, mr->mr_value, mr->mr_size);
52 sha384_update(&ctx.sha384, data, mr->mr_size);
53 sha384_final(&ctx.sha384, mr->mr_value);
57 sha512_update(&ctx.sha512, mr->mr_value, mr->mr_size);
58 sha512_update(&ctx.sha512, data, mr->mr_size);
59 sha512_final(&ctx.sha512, mr->mr_value);
62 pr_err("Unsupported hash algorithm: %d\n", mr->mr_hash);
67 #define MR_(mr, hash) .mr_value = &sample_report.mr, TSM_MR_(mr, hash)
69 /* static MR, read-only */
71 /* config MR, read-only */
129 MODULE_DESCRIPTION("Sample module using tsm-mr to expose emulated MRs");