Lines Matching refs:ret
116 TEE_Result ret = TEE_ERROR_GENERIC; in tee_otp_get_hw_unique_key() local
124 ret = tee_zynqmp_get_device_dna(device_dna, sizeof(device_dna)); in tee_otp_get_hw_unique_key()
125 if (ret) { in tee_otp_get_hw_unique_key()
136 ret = tee_hash_createdigest(TEE_ALG_SHA256, device_dna, in tee_otp_get_hw_unique_key()
139 if (ret) { in tee_otp_get_hw_unique_key()
152 ret = tee_zynqmp_generate_huk_src(device_dna, sizeof(device_dna), src, in tee_otp_get_hw_unique_key()
154 if (ret) { in tee_otp_get_hw_unique_key()
169 ret = zynqmp_csu_puf_regenerate(); in tee_otp_get_hw_unique_key()
170 if (ret) { in tee_otp_get_hw_unique_key()
178 ret = zynqmp_csu_aes_encrypt_data(src, sizeof(src), dst, sizeof(dst), in tee_otp_get_hw_unique_key()
181 if (ret) { in tee_otp_get_hw_unique_key()
188 ret = zynqmp_csu_puf_regenerate(); in tee_otp_get_hw_unique_key()
189 if (ret) { in tee_otp_get_hw_unique_key()
196 ret = zynqmp_csu_aes_decrypt_data(dst, sizeof(src), src, sizeof(src), in tee_otp_get_hw_unique_key()
200 if (ret) { in tee_otp_get_hw_unique_key()
207 ret = TEE_ERROR_GENERIC; in tee_otp_get_hw_unique_key()
222 ret = TEE_SUCCESS; in tee_otp_get_hw_unique_key()
233 return ret; in tee_otp_get_hw_unique_key()