()
| 5 | |
| 6 | |
| 7 | def main(): |
| 8 | script_dir = Path(__file__).parent.parent |
| 9 | testvectors_dir = script_dir / 'testvectors_v1' |
| 10 | |
| 11 | json_files = list(testvectors_dir.glob('*.json')) |
| 12 | |
| 13 | for json_file in json_files: |
| 14 | # AES-FF1 tests include inputs expressed as a list of integers and escaped |
| 15 | # non-printable characters that format poorly. For now we ignore these |
| 16 | # files for reformatting. |
| 17 | if not json_file.name.startswith('aes_ff1_'): |
| 18 | reformat_json_file(json_file) |
| 19 | |
| 20 | |
| 21 | def reformat_json_file(file_path): |
no test coverage detected