Home
last modified time | relevance | path

Searched refs:num_elements (Results 1 – 3 of 3) sorted by relevance

/trusty/user/base/lib/apploader_package/
Dpackage.cpp226 size_t num_elements; in apploader_parse_package_metadata() local
227 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in apploader_parse_package_metadata()
232 if (num_elements == 0) { in apploader_parse_package_metadata()
249 if (num_elements != APPLOADER_PACKAGE_CBOR_ARRAY_SZ) { in apploader_parse_package_metadata()
250 TLOGE("Invalid number of CBOR array elements: %zd\n", num_elements); in apploader_parse_package_metadata()
322 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in apploader_parse_package_metadata()
327 if (num_elements != kCoseEncryptArrayElements) { in apploader_parse_package_metadata()
329 num_elements); in apploader_parse_package_metadata()
334 for (size_t i = 0; i < num_elements; i++) { in apploader_parse_package_metadata()
Dcose.cpp1074 size_t num_elements; in coseDecryptAesGcmInPlace() local
1075 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in coseDecryptAesGcmInPlace()
1080 if (num_elements < 3 || num_elements > 4) { in coseDecryptAesGcmInPlace()
1082 num_elements); in coseDecryptAesGcmInPlace()
1235 size_t num_elements; in coseDecryptAesGcmKeyWrapInPlace() local
1236 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in coseDecryptAesGcmKeyWrapInPlace()
1241 if (num_elements != kCoseEncryptArrayElements) { in coseDecryptAesGcmKeyWrapInPlace()
1243 num_elements); in coseDecryptAesGcmKeyWrapInPlace()
1248 while (num_elements-- > 1) { in coseDecryptAesGcmKeyWrapInPlace()
1258 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in coseDecryptAesGcmKeyWrapInPlace()
[all …]
/trusty/user/base/app/apploader/package_tool/
Dapploader_package_tool.cpp427 size_t num_elements, num_pairs; in parse_cose_recipient() local
429 if (CborReadArray(in, &num_elements) != CBOR_READ_RESULT_OK) { in parse_cose_recipient()
436 if (num_elements != 3) { in parse_cose_recipient()
438 num_elements); in parse_cose_recipient()
480 size_t num_elements, num_pairs; in parse_package() local
500 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in parse_package()
505 if (num_elements != APPLOADER_PACKAGE_CBOR_ARRAY_SZ) { in parse_package()
507 num_elements); in parse_package()
567 if (CborReadArray(&in, &num_elements) != CBOR_READ_RESULT_OK) { in parse_package()
573 if (num_elements < 3 || num_elements > 4) { in parse_package()
[all …]