Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
  • Loading branch information
williamcroberts committed Dec 8, 2023
1 parent a71f716 commit 79b68a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/tpm2_yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,18 @@ static int add_mapping_root_with_items(yaml_document_t *doc, int root,
return yaml_document_append_mapping_pair(doc, root, sub_root_key, sub_root);
}

static int tpmt_sym_def_object_to_yaml(yaml_document_t *t,
static int tpmt_sym_def_object_to_yaml(yaml_document_t *doc,
int root, const TPMS_SYMCIPHER_PARMS *params) {

key_value kvs[] = {
key_value sym_alg_kvs[] = {
KVP_ADD_STR("value", params->sym.algorithm),
KVP_ADD_INT("raw", params->sym.algorithm),
};

int rc = add_mapping_root_with_items(doc, root, "sym-alg",
sym_alg_kvs, ARRAY_LEN(sym_alg_kvs));
return_rc(rc);

print_alg_raw("sym-alg", sym->algorithm, indent);
print_alg_raw("sym-mode", sym->mode.sym, indent);
tpm2_tool_output("%ssym-keybits: %u\n", indent, sym->keyBits.sym);
Expand Down

0 comments on commit 79b68a8

Please sign in to comment.