Home
last modified time | relevance | path

Searched refs:number_len (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/
A Dcrypt_constants.c257 int number_len; in crypt_list_all_constants() local
262number_len = snprintf(NULL, 0, "%s,%d\n", s_crypt_constants[i].name, s_crypt_constants[i].value); in crypt_list_all_constants()
263 if (number_len < 0) { in crypt_list_all_constants()
266 total_len += number_len; in crypt_list_all_constants()
278number_len = snprintf(ptr, total_len, "%s,%d\n", s_crypt_constants[i].name, s_crypt_constants[i].v… in crypt_list_all_constants()
279 if (number_len < 0) return -1; in crypt_list_all_constants()
280 if ((unsigned int)number_len > total_len) return -1; in crypt_list_all_constants()
281 total_len -= number_len; in crypt_list_all_constants()
282 ptr += number_len; in crypt_list_all_constants()
A Dcrypt_sizes.c317 int number_len; in crypt_list_all_sizes() local
322 number_len = snprintf(NULL, 0, "%s,%u\n", s_crypt_sizes[i].name, s_crypt_sizes[i].size); in crypt_list_all_sizes()
323 if (number_len < 0) { in crypt_list_all_sizes()
326 total_len += number_len; in crypt_list_all_sizes()
339number_len = snprintf(ptr, total_len, "%s,%u\n", s_crypt_sizes[i].name, s_crypt_sizes[i].size); in crypt_list_all_sizes()
340 if (number_len < 0) return -1; in crypt_list_all_sizes()
341 if ((unsigned int)number_len > total_len) return -1; in crypt_list_all_sizes()
342 total_len -= number_len; in crypt_list_all_sizes()
343 ptr += number_len; in crypt_list_all_sizes()

Completed in 3 milliseconds