| /optee_os/scripts/ |
| H A D | tee_bin_parser.py | 25 print("Magic: \t\t0x{:08x}".format(magic)) 29 print("Version: \t0x{:02x}".format(version)) 33 print("ArchID: \t0x{:02x}".format(arch_id)) 37 print("Arch Flags: \t0x{:04x}".format(arch_id)) 41 print("Init size: \t0x{:04x}".format(init_size)) 45 print("Load addr high:\t0x{:04x}".format(laddr_h)) 49 print("Load addr low: \t0x{:04x}".format(laddr_l)) 53 print("Mem usage: \t0x{:04x}".format(mem_usage)) 57 print("Pages size: \t0x{:04x}".format(pgd_size))
|
| H A D | sign_encrypt.py | 440 .format(self.previous_max_depth) + 451 .format(self.previous_max_depth) + 484 raise Exception("Unexpected magic: 0x{:08x}".format(magic)) 488 .format(algo_value)) 492 raise Exception("Unexpected digest len: {}".format(hash_size)) 511 .format(enc_algo)) 514 .format(nonce_len)) 519 raise Exception("Unexpected tag len: {}".format(tag_len)) 527 .format(len(self.ciphertext), img_size)) 533 .format(len(self.img), img_size)) [all …]
|
| H A D | update_changelog.py | 48 "{}".format(tag) 72 text = "# OP-TEE - version {} ({})\n".format(rv, rd) 82 "[{}_pr_{}]\n".format(g, gu, rvu, gu, rvu, gu, rvu) 90 "{}\n".format(gu, rvu, g, rv) 92 "{}...{}\n".format(gu, rvu, g, prv, rv) 94 "merged+base%3Amaster+merged%3A{}..{}\n".format(
|
| H A D | ts_bin_to_c.py | 167 f.write('\t.flags = 0x{:04x},\n'.format(sp_get_flags(ts))) 171 f.write('\t.flags = 0x{:04x},\n'.format(ta_get_flags(ts))) 173 f.write('\t\t.timeLow = 0x{:08x},\n'.format(ts_uuid.time_low)) 174 f.write('\t\t.timeMid = 0x{:04x},\n'.format(ts_uuid.time_mid)) 176 '0x{:04x},\n'.format(ts_uuid.time_hi_version)) 178 csn = '{0:02x}{1:02x}{2:012x}'.format(ts_uuid.clock_seq_hi_variant, 184 '), /* {:d} */\n'.format(ts_size)) 188 '{:d},\n'.format(ts_uncompressed_size))
|
| H A D | gen_ld_sects.py | 12 print("Usage: {0} <section reg exp match> [<skip section>...]".format( 60 print('\t*({0})'.format(sect_name))
|
| H A D | get_maintainer.py | 118 prefix = "{}_{}_".format(patchnum, psname) 230 url = "https://github.com/OP-TEE/optee_os/pull/{}.patch".format(pr) 231 f = tempfile.NamedTemporaryFile(mode="wb", prefix="pr{}_".format(pr), 233 print("Downloading {}...".format(url), end='', flush=True) 313 print("{} (maintainer:{})".format(name, ss_name)) 315 print("{} (reviewer:{})".format(name, ss_name))
|
| H A D | gen_stmm_hex.py | 42 outf.write('0x{:02x},'.format(bytes[i])) 52 '{:d};\n'.format(uncompressed_size))
|
| H A D | gen_ldelf_hex.py | 68 print('RO load segment found after RW one(s) (m={})'.format(n)) 77 'segment {}, please check'.format(pad, n-1)) 108 outf.write(b'0x' + '{:02x}'.format(data[j]).encode('utf-8')
|
| H A D | checkpatch_inc.sh | 35 (git format-patch $1^..$1 --stdout | sed -n '/^diff --git/q;p'; \ 36 git format-patch $1^..$1 --stdout -- $_CP_EXCL . | \
|
| H A D | gen_compile_commands.py | 150 sys.exit('{}: module path must end with .o'.format(obj)) 198 logging.basicConfig(format='%(levelname)s: %(message)s', level=level) 216 sys.exit('{}: unknown file type'.format(path))
|
| H A D | mem_usage.py | 42 def printf(format, *args): argument 43 sys.stdout.write(format % args)
|
| H A D | symbolize.py | 148 print("*** Error:{}: command not found".format(cmd[0]), 240 return '0x{:x}'.format(int(addr, 16) - int(l_addr, 16)) 248 reladdr = '0x{:x}'.format(int(reladdr, 16) + 374 return '0x{:x}'.format(self._sections[elf_name][0][1]) 439 res = self.resolve('0x{:x}'.format(pc))
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | platform.c | 89 const char *format, ...) in platform_snprintf_uninit() argument 93 ((void) format); in platform_snprintf_uninit() 101 const char *format, 105 const char *format, in mbedtls_platform_set_snprintf() argument 144 const char *format, va_list arg) in platform_vsnprintf_uninit() argument 148 ((void) format); in platform_vsnprintf_uninit() 157 const char *format, 161 const char *format, in mbedtls_platform_set_vsnprintf() argument 174 static int platform_printf_uninit(const char *format, ...) in platform_printf_uninit() argument 176 ((void) format); in platform_printf_uninit() [all …]
|
| H A D | debug_internal.h | 32 const char *format, ...) MBEDTLS_PRINTF_ATTRIBUTE(5, 6);
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | platform.h | 176 extern int (*mbedtls_fprintf)(FILE *stream, const char *format, ...); 202 extern int (*mbedtls_printf)(const char *format, ...); 238 extern int (*mbedtls_snprintf)(char *s, size_t n, const char *format, ...); 249 const char *format, ...)); 276 extern int (*mbedtls_vsnprintf)(char *s, size_t n, const char *format, va_list arg); 286 const char *format, va_list arg));
|
| H A D | debug.h | 84 #if __has_attribute(format) 90 __attribute__((format(printf, string_index, first_to_check)))
|
| H A D | ecp.h | 777 int format, size_t *olen, 855 int format, size_t *olen, 1431 int format, size_t *olen,
|
| /optee_os/core/drivers/crypto/caam/include/ |
| H A D | caam_desc_defines.h | 318 #define PROT_RSA_FMT(format) SHIFT_U32((PROT_RSA_FMT_##format) & 0x1, 12) argument 323 #define PROT_RSA_DEC_KEYFORM(format) SHIFT_U32(((format) - 1) & 0x3, 0) argument 326 #define PROT_RSA_KEY(format) SHIFT_U32((PROT_RSA_KEY_##format) & 0x3, 0) argument 345 #define PROT_RSA_KEY_ENC(format) SHIFT_U32((PROT_RSA_KEY_ENC_##format) & 0x3, 8) argument 382 #define PROT_BLOB_FORMAT(format) SHIFT_U32(0, PROT_BLOB_FORMAT_##format) argument
|
| H A D | caam_desc_helper.h | 491 #define RSA_ENCRYPT(format) \ argument 492 (CMD_OP_TYPE | PROTID(RSA_ENC) | PROT_RSA_FMT(format)) 497 #define RSA_DECRYPT(format) \ argument 498 (CMD_OP_TYPE | PROTID(RSA_DEC) | PROT_RSA_FMT(format)) 503 #define RSA_FINAL_KEY(format, alg) \ argument 504 (CMD_OP_TYPE | PROTID(RSA_FINISH_KEY) | PROT_RSA_KEY(format) | \
|
| /optee_os/core/drivers/crypto/se050/adaptors/utils/ |
| H A D | info.c | 18 #define LOG_I(format, ...) nLog("Info", 0xff, format, ##__VA_ARGS__) argument 19 #define LOG_E(format, ...) nLog("Info", NX_LEVEL_ERROR, format, ##__VA_ARGS__) argument
|
| /optee_os/core/arch/arm/plat-telechips/scripts/ |
| H A D | tcmktool.py | 114 print("{} was generated successfully\n".format(argv[2])) 116 print("Failed to generate output file (error code: {})\n".format(ret))
|
| /optee_os/ |
| H A D | .gitignore | 10 !.clang-format
|
| H A D | .clang-format | 3 # clang-format configuration file. Intended for clang-format >= 11.
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_rsa.c | 71 uint8_t format; /* Define the Private Key Format (1, 2 or 3) */ member 224 outkey->format = RSA_PRIVATE_KEY_FORMAT_3; in do_keypair_conv_f3() 267 outkey->format = RSA_PRIVATE_KEY_FORMAT_2; in do_keypair_conv_f2() 308 outkey->format = RSA_PRIVATE_KEY_FORMAT_1; in do_keypair_conv() 487 if (genkey->format > RSA_PRIVATE_KEY_FORMAT_2) in gen_keypair_get_f2() 538 genkey.format = CFG_NXP_CAAM_RSA_KEY_FORMAT; in do_gen_keypair() 597 if (genkey.format > RSA_PRIVATE_KEY_FORMAT_2) { in do_gen_keypair() 660 if (genkey.format > RSA_PRIVATE_KEY_FORMAT_2) { in do_gen_keypair() 748 if (genkey.format > RSA_PRIVATE_KEY_FORMAT_1) in do_gen_keypair() 1329 switch (kp.format) { in get_caam_key_type() [all …]
|
| /optee_os/core/pta/veraison_attestation/ |
| H A D | README.md | 5 For convenience, this PTA reuses the PSA token format [3]. However, note that PSA semantics do not … 15 1. **PSA Semantics Limitations:** Although this PTA reuses the PSA token format, many of the releva…
|