Searched refs:asInt (Results 1 – 15 of 15) sorted by relevance
240 public int asInt() { in asInt() method in ContextHubTestConstants.TestNames335 public int asInt() { in asInt() method in ContextHubTestConstants.MessageType354 if (value == type.asInt()) { in fromInt()
77 ContextHubTestConstants.TestNames.NANO_APP_INFO_EVENTS_PERFORMER.asInt(), in handleMessageFromNanoApp()104 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()
114 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()119 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()
150 message.getNanoAppId(), ContextHubTestConstants.MessageType.CONTINUE.asInt(), in hackMessageFromNanoApp()185 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in sendEmptyMessage()
60 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
54 ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
59 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
97 ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
222 test.getTestName().asInt(), new byte[0] /* data */); in run()
1479 const cppbor::Int* key = key_item->asInt(); in parse_eat_record()1484 const cppbor::Int* int_value = value_item->asInt(); in parse_eat_record()1599 const cppbor::Int* key_int = key_item->asInt(); in parse_submod_values()1609 ASSERT_OR_RETURN_ERROR(value_item->asInt(), KM_ERROR_INVALID_TAG); in parse_submod_values()1611 TAG_ALGORITHM, static_cast<keymaster_algorithm_t>(value_item->asInt()->value())); in parse_submod_values()1614 ASSERT_OR_RETURN_ERROR(value_item->asInt(), KM_ERROR_INVALID_TAG); in parse_submod_values()1616 TAG_EC_CURVE, static_cast<keymaster_ec_curve_t>(value_item->asInt()->value())); in parse_submod_values()1619 ASSERT_OR_RETURN_ERROR(value_item->asInt(), KM_ERROR_INVALID_TAG); in parse_submod_values()1621 value_item->asInt()->value())); in parse_submod_values()1624 ASSERT_OR_RETURN_ERROR(value_item->asInt(), KM_ERROR_INVALID_TAG); in parse_submod_values()[all …]
119 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in verifyAndParseCoseMac0()196 if (!algorithm || !algorithm->asInt() || algorithm->asInt()->value() != EDDSA) { in verifyAndParseCoseSign1()286 if (!algorithm || !algorithm->asInt() || algorithm->asInt()->value() != ECDH_ES_HKDF_256) { in getSenderPubKeyFromCoseEncrypt()297 if (!keyType || !keyType->asInt() || keyType->asInt()->value() != OCTET_KEY_PAIR) { in getSenderPubKeyFromCoseEncrypt()302 if (!curve || !curve->asInt() || curve->asInt()->value() != X25519) { in getSenderPubKeyFromCoseEncrypt()346 if (!algorithm || !algorithm->asInt() || algorithm->asInt()->value() != AES_GCM_256) { in decryptCoseEncrypt()
149 const cppbor::Int* itemId = ((*array)[0])->asInt(); in parseSacp()154 const cppbor::Int* itemTimeoutMillis = ((*array)[3])->asInt(); in parseSacp()155 const cppbor::Int* itesecureUserId_ = ((*array)[4])->asInt(); in parseSacp()184 const cppbor::Int* itemUseCount = ((*array)[5])->asInt(); in parseAuthKeyData()195 const cppbor::Int* itemExpirationDateMillisSinceEpoch = ((*array)[6])->asInt(); in parseAuthKeyData()218 const cppbor::Int* itemInt = ((*array)[n])->asInt(); in parseAccessControlProfileIds()285 const cppbor::Int* number = valueItem->asInt(); in loadFromDisk()342 const cppbor::Int* ecEntrySizeItem = (*ecEntryArrayItem)[0]->asInt(); in loadFromDisk()387 const cppbor::Int* number = valueItem->asInt(); in loadFromDisk()395 const cppbor::Int* number = valueItem->asInt(); in loadFromDisk()
208 if (!value || !value->asInt()) return {}; in getIntValue()209 return value->asInt()->value(); in getIntValue()223 return value && value->asInt() && value->asInt()->value() == expectedValue; in checkIntValue()
321 const cppbor::Int* root_key = eat_key->asInt(); in TEST()332 const cppbor::Int* key_int = key_item->asInt(); in TEST()336 submod_security_level = (EatSecurityLevel)value_item->asInt()->value(); in TEST()
155 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in validateAndExtractPubkeys()