/external/u-boot/lib/ |
tpm-v2.c | 46 u32 tpm2_clear(u32 handle, const char *pw, const ssize_t pw_sz) 50 tpm_u32(27 + pw_sz), /* Length */ 57 tpm_u32(9 + pw_sz), /* Authorization size */ 62 tpm_u16(pw_sz), /* Size of <hmac/password> */ 73 offset, pw, pw_sz); 74 offset += pw_sz; 194 u32 tpm2_dam_reset(const char *pw, const ssize_t pw_sz) 198 tpm_u32(27 + pw_sz), /* Length */ 205 tpm_u32(9 + pw_sz), /* Authorization size */ 210 tpm_u16(pw_sz), /* Size of <hmac/password> * [all...] |
/external/u-boot/include/ |
tpm-v2.h | 153 * @pw_sz Length of the password 157 u32 tpm2_clear(u32 handle, const char *pw, const ssize_t pw_sz); 200 * @pw_sz Length of the password 204 u32 tpm2_dam_reset(const char *pw, const ssize_t pw_sz); 210 * @pw_sz Length of the password 217 u32 tpm2_dam_parameters(const char *pw, const ssize_t pw_sz, 239 * @pw_sz Length of the password 245 u32 tpm2_pcr_setauthpolicy(const char *pw, const ssize_t pw_sz, u32 index, 252 * @pw_sz Length of the password 259 u32 tpm2_pcr_setauthvalue(const char *pw, const ssize_t pw_sz, u32 index [all...] |
/external/u-boot/cmd/ |
tpm-v2.c | 60 const ssize_t pw_sz = pw ? strlen(pw) : 0; local 65 if (pw_sz > TPM2_DIGEST_LEN) 75 return report_return_code(tpm2_clear(handle, pw, pw_sz)); 188 const ssize_t pw_sz = pw ? strlen(pw) : 0; local 193 if (pw_sz > TPM2_DIGEST_LEN) 196 return report_return_code(tpm2_dam_reset(pw, pw_sz)); 203 const ssize_t pw_sz = pw ? strlen(pw) : 0; local 215 if (pw_sz > TPM2_DIGEST_LEN) 232 return report_return_code(tpm2_dam_parameters(pw, pw_sz, max_tries, 273 const ssize_t pw_sz = pw ? strlen(pw) : 0 local 292 const ssize_t pw_sz = pw ? strlen(pw) : 0; local [all...] |
/external/u-boot/drivers/tpm/ |
tpm2_tis_sandbox.c | 54 int pw_sz[TPM2_HIERARCHY_NB]; member in struct:sandbox_tpm2 74 u16 nonce_sz, pw_sz; local 156 pw_sz = get_unaligned_be16(*auth); 157 *auth += sizeof(pw_sz); 158 if (auth_sz != (9 + nonce_sz + pw_sz)) { 160 auth_sz, 9 + nonce_sz + pw_sz); 165 if (!pw_sz && !tpm->pw_sz[*hierarchy]) 169 if (pw_sz > TPM2_DIGEST_LEN) { 176 *auth += pw_sz; [all...] |
/external/autotest/client/site_tests/firmware_Cr50VirtualNVRam/ |
firmware_Cr50VirtualNVRam.py | 131 pw_sz = format(len(tpm_owner_password), 'x') + ' ' 144 '00 ' + pw_sz + # password length 158 pw_sz = format(len(tpm_owner_password), 'x') + ' ' 172 '00 ' + pw_sz + # password length
|