Lines Matching refs:p
661 static int key_seal(struct trusted_key_payload *p, in key_seal() argument
672 p->key[p->key_len] = p->migratable; in key_seal()
675 p->key, p->key_len + 1, p->blob, &p->blob_len, in key_seal()
687 static int key_unseal(struct trusted_key_payload *p, in key_unseal() argument
697 ret = tpm_unseal(&tb, o->keyhandle, o->keyauth, p->blob, p->blob_len, in key_unseal()
698 o->blobauth, p->key, &p->key_len); in key_unseal()
703 p->migratable = p->key[--p->key_len]; in key_unseal()
736 char *p = c; in getoptions() local
755 while ((p = strsep(&c, " \t"))) { in getoptions()
756 if (*p == '\0' || *p == ' ' || *p == '\t') in getoptions()
758 token = match_token(p, key_tokens, args); in getoptions()
888 static int trusted_tpm_seal(struct trusted_key_payload *p, char *datablob) in trusted_tpm_seal() argument
902 ret = getoptions(datablob, p, options); in trusted_tpm_seal()
913 ret = tpm2_seal_trusted(chip, p, options); in trusted_tpm_seal()
915 ret = key_seal(p, options); in trusted_tpm_seal()
933 static int trusted_tpm_unseal(struct trusted_key_payload *p, char *datablob) in trusted_tpm_unseal() argument
947 ret = getoptions(datablob, p, options); in trusted_tpm_unseal()
958 ret = tpm2_unseal_trusted(chip, p, options); in trusted_tpm_unseal()
960 ret = key_unseal(p, options); in trusted_tpm_unseal()