Lines Matching full:args
160 def efuse_summary(args, idf_target): argument
161 …mponents/esptool_py/esptool/espefuse.py --chip {0} -p {1} summary'.format(idf_target, (args.port)))
166 def efuse_burn_key(args, idf_target): argument
170 if args.production is True:
177 ….format((idf_target), (args.port), ('BLOCK_KEY' + str(args.efuse_key_id)), (hmac_key_file), (key_b…
219 def get_efuse_summary_json(args, idf_target): argument
223 … '--chip {0} -p {1} summary --format json'.format(idf_target, (args.port))), shell=True)
240 # on success: 256 bit HMAC key present in the given key_block (args.efuse_key_id)
246 def configure_efuse_key_block(args, idf_target): argument
247 efuse_summary_json = get_efuse_summary_json(args, idf_target)
248 key_blk = 'BLOCK_KEY' + str(args.efuse_key_id)
249 key_purpose = 'KEY_PURPOSE_' + str(args.efuse_key_id)
259 …OCK %1d) is writable\n Generating a new key and burning it in the efuse..\n' % (args.efuse_key_id))
265 efuse_burn_key(args, idf_target)
269 new_efuse_summary_json = get_efuse_summary_json(args, idf_target)
273 print('Key was successfully written to the efuse (KEY BLOCK %1d)' % (args.efuse_key_id))
276 … '\nPlease execute the script again using a different key id' % (args.efuse_key_id))
285 … '\nusing the same key for encrypting the private key data...\n' % (args.efuse_key_id))
288 if args.keep_ds_data is True:
293 …please execute the script again with a different value of the efuse key id.' % (args.efuse_key_id))
297 …please execute the script again with a different value of the efuse key id.' % (args.efuse_key_id))
304 def cleanup(args): argument
305 if args.keep_ds_data is False:
359 args = parser.parse_args()
368 if args.summary is not False:
369 efuse_summary(args, idf_target)
372 if (os.path.exists(args.privkey) is False):
381 hmac_key_read = configure_efuse_key_block(args, idf_target)
386 …c, iv, key_size = calculate_ds_parameters(args.privkey, args.priv_key_pass, hmac_key_read, idf_tar…
389 generate_csv_file(c, iv, args.efuse_key_id, key_size, csv_filename)
391 cleanup(args)