Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 43) sorted by relevance

12

/optee_os/scripts/
H A Dtee_bin_parser.py25 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 Dsign_encrypt.py440 .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 Dupdate_changelog.py48 "{}".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 Dts_bin_to_c.py167 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 Dgen_ld_sects.py12 print("Usage: {0} <section reg exp match> [<skip section>...]".format(
60 print('\t*({0})'.format(sect_name))
H A Dget_maintainer.py118 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 Dgen_stmm_hex.py42 outf.write('0x{:02x},'.format(bytes[i]))
52 '{:d};\n'.format(uncompressed_size))
H A Dgen_ldelf_hex.py68 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 Dcheckpatch_inc.sh35 (git format-patch $1^..$1 --stdout | sed -n '/^diff --git/q;p'; \
36 git format-patch $1^..$1 --stdout -- $_CP_EXCL . | \
H A Dgen_compile_commands.py150 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 Dmem_usage.py42 def printf(format, *args): argument
43 sys.stdout.write(format % args)
H A Dsymbolize.py148 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 Dplatform.c89 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 Ddebug_internal.h32 const char *format, ...) MBEDTLS_PRINTF_ATTRIBUTE(5, 6);
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dplatform.h176 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 Ddebug.h84 #if __has_attribute(format)
90 __attribute__((format(printf, string_index, first_to_check)))
H A Decp.h777 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 Dcaam_desc_defines.h318 #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 Dcaam_desc_helper.h491 #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 Dinfo.c18 #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 Dtcmktool.py114 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.gitignore10 !.clang-format
H A D.clang-format3 # clang-format configuration file. Intended for clang-format >= 11.
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_rsa.c71 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 DREADME.md5 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…

12