接前一篇文章:tpm2-tools源码分析之tpm2_create.c(1)
本文对tpm2_create.c中的tpm2_tool_onstart函数进行详细解析。文章来源:https://www.toymoban.com/news/detail-417197.html
先再次贴出该函数源码:文章来源地址https://www.toymoban.com/news/detail-417197.html
static bool tpm2_tool_onstart(tpm2_options **opts) {
static struct option topts[] = {
{ "parent-auth", required_argument, NULL, 'P' },
{ "key-auth", required_argument, NULL, 'p' },
{ "hash-algorithm", required_argument, NULL, 'g' },
{ "key-algorithm", required_argument, NULL, 'G' },
{ "attributes", required_argument, NULL, 'a' },
{ "sealing-input", required_argument, NULL, 'i' },
{ "policy", required_argument, NULL, 'L' },
{ "public", required_argument, NULL, 'u' },
到了这里,关于tpm2-tools源码分析之tpm2_create.c(2)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!