Searched refs:pw_sz (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/cmd/ |
H A D | tpm-v2.c | 71 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm2_clear() local 82 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm2_clear() 92 return report_return_code(tpm2_clear(dev, handle, pw, pw_sz)); in do_tpm2_clear() 213 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_reset() local 224 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_reset() 227 return report_return_code(tpm2_dam_reset(dev, pw, pw_sz)); in do_tpm_dam_reset() 234 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_parameters() local 252 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_parameters() 269 return report_return_code(tpm2_dam_parameters(dev, pw, pw_sz, max_tries, in do_tpm_dam_parameters() 316 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_pcr_setauthpolicy() local [all …]
|
/openbmc/u-boot/lib/ |
H A D | tpm-v2.c | 762 const ssize_t pw_sz) in tpm2_clear() argument 768 tpm_u32(offset + pw_sz), /* Length */ in tpm2_clear() 775 tpm_u32(9 + pw_sz), /* Authorization size */ in tpm2_clear() 780 tpm_u16(pw_sz), /* Size of <hmac/password> */ in tpm2_clear() 790 offset, pw, pw_sz); in tpm2_clear() 791 offset += pw_sz; in tpm2_clear() 1184 u32 tpm2_dam_reset(struct udevice *dev, const char *pw, const ssize_t pw_sz) in tpm2_dam_reset() argument 1188 tpm_u32(27 + pw_sz), /* Length */ in tpm2_dam_reset() 1195 tpm_u32(9 + pw_sz), /* Authorization size */ in tpm2_dam_reset() 1200 tpm_u16(pw_sz), /* Size of <hmac/password> */ in tpm2_dam_reset() [all …]
|
/openbmc/u-boot/drivers/tpm/ |
H A D | tpm2_tis_sandbox.c | 50 int pw_sz[TPM2_HIERARCHY_NB]; member 70 u16 nonce_sz, pw_sz; in sandbox_tpm2_check_session() local 152 pw_sz = get_unaligned_be16(*auth); in sandbox_tpm2_check_session() 153 *auth += sizeof(pw_sz); in sandbox_tpm2_check_session() 154 if (auth_sz != (9 + nonce_sz + pw_sz)) { in sandbox_tpm2_check_session() 156 auth_sz, 9 + nonce_sz + pw_sz); in sandbox_tpm2_check_session() 161 if (!pw_sz && !tpm->pw_sz[*hierarchy]) in sandbox_tpm2_check_session() 165 if (pw_sz > TPM2_DIGEST_LEN) { in sandbox_tpm2_check_session() 172 *auth += pw_sz; in sandbox_tpm2_check_session() 175 if (pw_sz != tpm->pw_sz[*hierarchy] || in sandbox_tpm2_check_session() [all …]
|
/openbmc/u-boot/include/ |
H A D | tpm-v2.h | 701 const ssize_t pw_sz); 811 u32 tpm2_dam_reset(struct udevice *dev, const char *pw, const ssize_t pw_sz); 826 const ssize_t pw_sz, unsigned int max_tries, 858 const ssize_t pw_sz, u32 index, const char *key); 873 const ssize_t pw_sz, u32 index, const char *key,
|