Lines Matching refs:opt
744 struct trusted_key_options *opt) in getoptions() argument
761 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
772 opt->pcrinfo_len = strlen(args[0].from) / 2; in getoptions()
773 if (opt->pcrinfo_len > MAX_PCRINFO_SIZE) in getoptions()
775 res = hex2bin(opt->pcrinfo, args[0].from, in getoptions()
776 opt->pcrinfo_len); in getoptions()
784 opt->keytype = SEAL_keytype; in getoptions()
785 opt->keyhandle = handle; in getoptions()
790 res = hex2bin(opt->keyauth, args[0].from, in getoptions()
801 opt->blobauth_len = strlen(args[0].from); in getoptions()
803 if (opt->blobauth_len == 2 * TPM_DIGEST_SIZE) { in getoptions()
804 res = hex2bin(opt->blobauth, args[0].from, in getoptions()
809 opt->blobauth_len = TPM_DIGEST_SIZE; in getoptions()
813 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
814 memcpy(opt->blobauth, args[0].from, in getoptions()
815 opt->blobauth_len); in getoptions()
833 opt->pcrlock = lock; in getoptions()
840 opt->hash = i; in getoptions()
852 digest_len = hash_digest_size[opt->hash]; in getoptions()
855 res = hex2bin(opt->policydigest, args[0].from, in getoptions()
859 opt->policydigest_len = digest_len; in getoptions()
867 opt->policyhandle = handle; in getoptions()