/external/tpm2-tss/test/integration/ |
D | fapi-key-create-policy-authorize-sign.int.c | 100 char *json_policy = NULL; in test_fapi_key_create_policy_authorize_sign() local 126 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_authorize_sign() 127 goto_if_null(json_policy, in test_fapi_key_create_policy_authorize_sign() 131 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_authorize_sign() 136 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_authorize_sign() 138 r = Fapi_Import(context, policy_name_hash, json_policy); in test_fapi_key_create_policy_authorize_sign() 139 SAFE_FREE(json_policy); in test_fapi_key_create_policy_authorize_sign() 151 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_authorize_sign() 152 goto_if_null(json_policy, in test_fapi_key_create_policy_authorize_sign() 156 ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_authorize_sign() [all …]
|
D | fapi-key-create-policy-secret-nv-sign.int.c | 51 char *json_policy = NULL; in read_policy() local 65 json_policy = malloc(policy_size + 1); in read_policy() 66 return_if_null(json_policy, in read_policy() 70 ssize_t ret = read(fileno(stream), json_policy, policy_size); in read_policy() 75 json_policy[policy_size] = '\0'; in read_policy() 76 return json_policy; in read_policy() 106 char *json_policy = NULL; in test_fapi_key_create_policy_secret_nv_sign() local 114 json_policy = read_policy(context, policy_nv); in test_fapi_key_create_policy_secret_nv_sign() 115 if (!json_policy) in test_fapi_key_create_policy_secret_nv_sign() 118 r = Fapi_Import(context, policy_nv, json_policy); in test_fapi_key_create_policy_secret_nv_sign() [all …]
|
D | fapi-key-create-policy-authorize-nv-sign.int.c | 72 char *json_policy = NULL; in read_policy() local 86 json_policy = malloc(policy_size + 1); in read_policy() 88 ssize_t ret = read(fileno(stream), json_policy, policy_size); in read_policy() 93 json_policy[policy_size] = '\0'; in read_policy() 94 return json_policy; in read_policy() 123 char *json_policy = NULL; in test_fapi_key_create_policy_authorize_nv() local 143 json_policy = read_policy(context, policy_authorize_nv); in test_fapi_key_create_policy_authorize_nv() 144 if (!json_policy) in test_fapi_key_create_policy_authorize_nv() 147 r = Fapi_Import(context, policy_authorize_nv, json_policy); in test_fapi_key_create_policy_authorize_nv() 149 SAFE_FREE(json_policy); in test_fapi_key_create_policy_authorize_nv() [all …]
|
D | fapi-key-create-policy-pcr-sign.int.c | 56 char *json_policy = NULL; in test_fapi_key_create_policy_pcr_sign() local 78 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_pcr_sign() 79 goto_if_null(json_policy, in test_fapi_key_create_policy_pcr_sign() 83 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_pcr_sign() 88 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_pcr_sign() 90 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_key_create_policy_pcr_sign() 136 SAFE_FREE(json_policy); in test_fapi_key_create_policy_pcr_sign() 142 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_pcr_sign() 143 goto_if_null(json_policy, in test_fapi_key_create_policy_pcr_sign() 147 ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_pcr_sign() [all …]
|
D | fapi-nv-written-policy.int.c | 50 char *json_policy = NULL; in test_fapi_nv_written_policy() local 68 json_policy = malloc(policy_size + 1); in test_fapi_nv_written_policy() 69 goto_if_null(json_policy, in test_fapi_nv_written_policy() 74 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_nv_written_policy() 79 json_policy[policy_size] = '\0'; in test_fapi_nv_written_policy() 81 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_nv_written_policy() 110 SAFE_FREE(json_policy); in test_fapi_nv_written_policy() 116 SAFE_FREE(json_policy); in test_fapi_nv_written_policy()
|
D | fapi-duplicate.int.c | 47 char *json_policy = NULL; in test_fapi_duplicate() local 66 json_policy = malloc(policy_size + 1); in test_fapi_duplicate() 67 goto_if_null(json_policy, in test_fapi_duplicate() 71 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_duplicate() 76 json_policy[policy_size] = '\0'; in test_fapi_duplicate() 78 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_duplicate() 111 SAFE_FREE(json_policy); in test_fapi_duplicate() 117 SAFE_FREE(json_policy); in test_fapi_duplicate()
|
D | fapi-key-create-policy-nv-sign.int.c | 52 char *json_policy = NULL; in test_fapi_key_create_policy_nv_sign() local 76 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_nv_sign() 77 goto_if_null(json_policy, in test_fapi_key_create_policy_nv_sign() 81 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_nv_sign() 86 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_nv_sign() 88 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_key_create_policy_nv_sign() 117 SAFE_FREE(json_policy); in test_fapi_key_create_policy_nv_sign() 123 SAFE_FREE(json_policy); in test_fapi_key_create_policy_nv_sign()
|
D | fapi-key-create-policies-sign.int.c | 102 char *json_policy = NULL; in test_fapi_key_create_policies_sign() local 119 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policies_sign() 120 goto_if_null(json_policy, in test_fapi_key_create_policies_sign() 124 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policies_sign() 129 json_policy[policy_size] = '\0'; in test_fapi_key_create_policies_sign() 131 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_key_create_policies_sign() 171 SAFE_FREE(json_policy); in test_fapi_key_create_policies_sign() 185 SAFE_FREE(json_policy); in test_fapi_key_create_policies_sign() 194 SAFE_FREE(json_policy); in test_fapi_key_create_policies_sign()
|
D | fapi-key-create-policy-or-sign.int.c | 89 char *json_policy = NULL; in test_fapi_key_create_policy_or_sign() local 108 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_or_sign() 109 goto_if_null(json_policy, in test_fapi_key_create_policy_or_sign() 113 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_or_sign() 118 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_or_sign() 120 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_key_create_policy_or_sign() 147 SAFE_FREE(json_policy); in test_fapi_key_create_policy_or_sign() 159 SAFE_FREE(json_policy); in test_fapi_key_create_policy_or_sign()
|
D | fapi-nv-increment.int.c | 67 char *json_policy = NULL; in test_fapi_nv_increment() local 84 json_policy = malloc(policy_size + 1); in test_fapi_nv_increment() 85 goto_if_null(json_policy, in test_fapi_nv_increment() 89 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_nv_increment() 94 json_policy[policy_size] = '\0'; in test_fapi_nv_increment() 96 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_nv_increment() 162 SAFE_FREE(json_policy); in test_fapi_nv_increment() 166 SAFE_FREE(json_policy); in test_fapi_nv_increment()
|
D | fapi-data-crypt.int.c | 191 char *json_policy = NULL; in test_fapi_data_crypt() local 210 json_policy = malloc(policy_size + 1); in test_fapi_data_crypt() 211 goto_if_null(json_policy, in test_fapi_data_crypt() 215 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_data_crypt() 220 json_policy[policy_size] = '\0'; in test_fapi_data_crypt() 222 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_data_crypt() 262 Fapi_Free(json_policy); in test_fapi_data_crypt() 269 Fapi_Free(json_policy); in test_fapi_data_crypt() 275 Fapi_Free(json_policy); in test_fapi_data_crypt()
|
D | fapi-key-create-policy-signed.int.c | 212 char *json_policy = NULL; in test_fapi_key_create_policy_signed() local 233 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_signed() 234 goto_if_null(json_policy, in test_fapi_key_create_policy_signed() 238 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_signed() 243 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_signed() 245 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_key_create_policy_signed() 278 SAFE_FREE(json_policy); in test_fapi_key_create_policy_signed() 285 SAFE_FREE(json_policy); in test_fapi_key_create_policy_signed()
|
D | fapi-key-create-policy-password-sign.int.c | 66 char *json_policy = NULL; in test_fapi_key_create_policy_password_sign() local 87 json_policy = malloc(policy_size + 1); in test_fapi_key_create_policy_password_sign() 89 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_key_create_policy_password_sign() 94 json_policy[policy_size] = '\0'; in test_fapi_key_create_policy_password_sign() 96 r = Fapi_PolicyImport(context, policy_name, json_policy); in test_fapi_key_create_policy_password_sign()
|
D | fapi-nv-ordinary.int.c | 94 char *json_policy = NULL; in test_fapi_nv_ordinary() local 115 json_policy = malloc(policy_size + 1); in test_fapi_nv_ordinary() 116 goto_if_null(json_policy, in test_fapi_nv_ordinary() 120 ssize_t ret = read(fileno(stream), json_policy, policy_size); in test_fapi_nv_ordinary() 125 json_policy[policy_size] = '\0'; in test_fapi_nv_ordinary() 127 r = Fapi_Import(context, policy_name, json_policy); in test_fapi_nv_ordinary() 258 SAFE_FREE(json_policy); in test_fapi_nv_ordinary() 264 SAFE_FREE(json_policy); in test_fapi_nv_ordinary()
|